11 Star 100 Fork 20

uiw / react-markdown-editor

 / 详情

请问只展示文章详情页怎么搞?也不要顶部

待办的
创建于  
2019-08-29 09:53

输入图片说明
输入图片说明

评论 (6)

fengjinqi 创建了任务

@fengjinqi 看到你的需求做了增强,更新 + @uiw/react-markdown-editor@1.3.0

<MarkdownEditor
  options={{
    autofocus: true,
    showCursorWhenSelecting: true,
  }}
  height={500}
  value="Hello World!"
  visbleEditor={false}
  toolbars={false}
  toolbarsMode={false}
/>

你也可使用我另外一个 Markdown 编辑器 https://gitee.com/uiw/react-md-editor

import React from "react";
import ReactDOM from "react-dom";
import MDEditor from '@uiw/react-md-editor';

export default function App() {
  return (
    <div className="container">
      <MDEditor.Markdown source="Hello Markdown!" />
    </div>
  );
}

你好,我使用了这个,但是发现有些没有编译好,输入图片说明
直接写代码直接转html了,而且有些样式也没有出来

@fengjinqi 没有懂你的意思,也不知道你是怎么使用的。 可以 Codepen 写个实例

就是有些markdown没有生效输入图片说明这个图片没有转换html,输入图片说明这里代码如下这里,有img代码,给转成html标签了,下面```javasript没有样式

@fengjinqi markdown 语法错误

输入图片说明

下面是正确的语法,记得换行

输入图片说明

我不知道你图片代码,不清楚错误的地方

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
359194 jaywcjlove 1578921405
TypeScript
1
https://gitee.com/uiw/react-markdown-editor.git
git@gitee.com:uiw/react-markdown-editor.git
uiw
react-markdown-editor
react-markdown-editor

搜索帮助