Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 15, 2023

Conversation

rich-iannone
Copy link
Member

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

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