Skip to content

Allow for selection of Markdown engine; default to markdown package, if available#1254

Merged
rich-iannone merged 8 commits into
masterfrom
markdown-engine-selection
Mar 15, 2023
Merged

Allow for selection of Markdown engine; default to markdown package, if available#1254
rich-iannone merged 8 commits into
masterfrom
markdown-engine-selection

Conversation

@rich-iannone

@rich-iannone rich-iannone commented Mar 15, 2023

Copy link
Copy Markdown
Member

This PR allows for a choice of the Markdown renderer in the fmt_markdown() and vec_fmt_markdown() functions; the renderer can either be from the markdown package (new default) or the commonmark package (as before). However, the choice only applies to HTML and LaTeX outputs. Furthermore, the markdown package is a soft dependency. If it is available and the choice is "auto", gt will choose markdown, otherwise commonmark.

Fixes: #725

@rich-iannone rich-iannone merged commit 6581054 into master Mar 15, 2023
@rich-iannone rich-iannone deleted the markdown-engine-selection branch March 15, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pandoc as an engine of fmt_markdown()

1 participant