You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to Feliz.Markdown?
The text was updated successfully, but these errors were encountered:
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 Feliz.Markdown binding to add the rehypePlugins property to it.
Here I used obj because the actual type definition is rehypePlugins?: import("unified").PluggableList | null | undefined; meaning that we would need a binding for unified package if we really wanted to be exaustive.
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: