xml_to_md | R Documentation |
Convert from CommonMark XML to (R) Markdown
xml_to_md(xml)
xml |
CommonMark parse tree. An |
A character scalar.
Other CommonMark parsing functions:
md_to_xml()
,
md_xml_subnode_ix()
"# A title
Some prose.
## A subtitle
More prose.
## Another subtitle
Out of prose here.
### A sub-subtitle
I'm dug in.
# Another title
A last word." |>
pal::md_to_xml() |>
xml2::xml_contents() |>
pal::xml_to_md() |>
cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.