Convert from CommonMark XML to (R) Markdown
See also
Other CommonMark parsing functions:
md_to_xml()
,
md_xml_subnode_ix()
Examples
"# 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()
#> Error: 'md_ns' is not an exported object from 'namespace:tinkr'