Closed jiangdi0924 closed 2 years ago
You could try the following code below and adjust the parameters to your liking.
How did you get to render the markdown using html? Mine just spits out the plain text.
How did you get to render the markdown using html? Mine just spits out the plain text.
try this :
import MarkdownUI
let doc = #"""
<h2>test</h2> <p>balablalalalala</p>
"""#
Markdown(Document((doc))
Note: i find if the top level html code without <h*> tag , then the html will not render completely.
Tried it with your example and it worked, but I tried it with a wordpress rest api and it didnt work
HTML rendering is very limited now. I am working on improving it for version 1.0. The goal is to cover the HTML tags equivalent to markdown, both in blocks and inlines. However, a rule of thumb is to use markdown syntax when possible.
This pkg is very helpful for me , thank you ! A bit issue when i render a html tag document , how can i fix it? `document = #"""
2> """#` ![image](https://user-images.githubusercontent.com/21988177/121982504-30bd6480-cdc2-11eb-94cc-4cb7af4a0867.png)