uiwjs / react-markdown-preview

React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style. Support dark-mode/night mode.
https://uiwjs.github.io/react-markdown-preview
MIT License
270 stars 48 forks source link

A tag don't work #40

Open MoonSupport opened 3 years ago

MoonSupport commented 3 years ago

"a Tag" works fine in react-markdown, but not in react-md-editor's preview.

image

Maybe I use this component.

import ReactMarkdownWithHtml from 'react-markdown/with-html';

Is there any way I can extend it?

I hope the problem is solved well, and thank you for making a nice app :)

jaywcjlove commented 3 years ago

https://github.com/uiwjs/react-md-editor/issues/56#issuecomment-717892235

@MoonSupport You can try to setting props?: ReactMarkdownProps;

MoonSupport commented 3 years ago

Thank you for your answer. :)

But sorry, I don't understand your propose. 😞

First, escapeHtml and skipHtml should be false ( default value ) for activating a tag

And, transformLinkUri seems to be something like middleware used to block specific protocols.

But I can't solve my problem just by understanding above it.

benharbit commented 3 weeks ago

did you ever solve this problem?