You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, fmt_markdown internally uses commonmark package for conversion of markdown texts.
I would like to suggest pandoc as an optional engine.
In this way, we can use Pandoc's Markdown which is consistent with R Markdown.
This will allow wider variety of inline formatting such as superscript and subscript, and also allow complex features like citations.
Until this is implemented, it would be great to document the limitations (or available MD features) in ?md - it took me a while to understand why ~sub~script worked in RMarkdown until I moved it into a table.
Currently,
fmt_markdown
internally uses commonmark package for conversion of markdown texts.I would like to suggest pandoc as an optional engine.
In this way, we can use Pandoc's Markdown which is consistent with R Markdown.
This will allow wider variety of inline formatting such as superscript and subscript, and also allow complex features like citations.
Just to give a hint to implement citations,
ftExtra::colformat_md
for flextable internally readsrmarkdown::metadata
to fetch bibliographies (https://github.com/atusy/ftExtra/blob/master/R/md2ast.R#L8), and then output citation keys as a part of YAML meta data block so to invisibly make sure citations appear in the reference (https://github.com/atusy/ftExtra/blob/master/R/knit-print.R#L20-L24).The text was updated successfully, but these errors were encountered: