-
Notifications
You must be signed in to change notification settings - Fork 77
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
react-markdown
removes the escapeHtml
property
#594
Comments
This example is using interop to write code using JavaScript and then call it from F#, meaning that you would need to mix JavaScript and F# code in your project. This is not bad per se, but in general something that you probably want to avoid. The best approach is to update the Pseudo code [<Erase>]
type markdown =
static member rehypePlugins (plugins : obj list) =
Interop.mkAttr "rehypePlugins" (ResizeArray plugins) Here I used |
According to their changelog,
react-markdown
have removed theescapeHtml
property in favor of using rehype plugins:https://github.com/remarkjs/react-markdown/blob/main/changelog.md#remove-buggy-html-in-markdown-parser
In their example, they use jsx to include the rehype plugins. I'm not quite sure how to approach this problem as I'm still newish to writing f# code that compiles to js. Would https://zaid-ajaj.github.io/Feliz/#/Feliz/UsingJsx be a good starting place on how to add
rehype
plugins toFeliz.Markdown
?The text was updated successfully, but these errors were encountered: