Skip to content

序号渲染不正常 #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liaokaime opened this issue Dec 9, 2020 · 3 comments
Closed

序号渲染不正常 #170

liaokaime opened this issue Dec 9, 2020 · 3 comments

Comments

@liaokaime
Copy link

有序和无序序号的渲染不正常

image

@sylingd
Copy link
Collaborator

sylingd commented Dec 9, 2020

预览区域的渲染效果取决于你自定义的markdown渲染器,与本编辑器无关。

@sylingd sylingd closed this as completed Dec 9, 2020
@liaokaime
Copy link
Author

谢谢,图上用的渲染器是markdown-it,我换成react-markdown后,有报错发生

  renderHTML(text: string) {
    // return this.mdParser.render(text);
    // Using react-markdown
    return React.createElement(ReactMarkdown, {
      source: text,
    });
  }

image

@liaokaime
Copy link
Author

我在react-markdown下找到了这个问题,这可能是react-markdown的原因,降级react-markdown可能解决问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants