Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
541 stars 80 forks source link

Feliz.Markdown escapeHtml doesn't seem to work #589

Closed LuisFX closed 11 months ago

LuisFX commented 11 months ago

I have the following code:

<a href="http://link.com/" target="_blank">Hello!</a>
Feliz.Markdown.Markdown.markdown [
  Markdown.markdown.escapeHtml false
  Markdown.markdown.skipHtml false
  Markdown.markdown.children props.Message
]                                  

My only intention, is to render links that open in a new tab/window using target blank.

The react-markdown seems to require a plugin, but I can't sort out how to get it working.

Zaid-Ajaj commented 11 months ago

I think you can override how a link is rendered and add the target="_blank" attribute to it