-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
(edit: not sure how the reprex lost its formatting, but I fixed it)
The new footnotes
feature might be useful for us at {tinkr}, but I'm not sure how to parse them as each footnote contains identical tags.
from: ropensci/tinkr#92 (comment)
txt <- c("a statement[^1][^2]\n", "[^1]: this is true", "[^2]: this is false")
commonmark::markdown_xml(txt, footnotes = TRUE) |> writeLines()
#> <?xml version="1.0" encoding="UTF-8"?>
#> <!DOCTYPE document SYSTEM "CommonMark.dtd">
#> <document xmlns="http://commonmark.org/xml/1.0">
#> <paragraph>
#> <text xml:space="preserve">a statement</text>
#> <<unknown> />
#> <<unknown> />
#> </paragraph>
#> <<unknown>>
#> <paragraph>
#> <text xml:space="preserve">this is true</text>
#> </paragraph>
#> </<unknown>>
#> <<unknown>>
#> <paragraph>
#> <text xml:space="preserve">this is false</text>
#> </paragraph>
#> </<unknown>>
#> </document>
Created on 2023-03-22 with reprex v2.0.2
salim-b, goreliu and yihui
Metadata
Metadata
Assignees
Labels
No labels