githubr-markdownquartogithub-flavored-markdown

How to render an .md from Quarto in GitHub?


I have a markdown created using the (new) RStudio quarto engine. I want to upload the .md in a Github repo. However, few elements render properly. For instance, many tables do not render, some markdown code renders as is (e.g. :::{.column-page}).

This is my first time using quarto. If I want to create an r markdown that is as compatible with Github markdown engine as possible, what should I do (I don't have to stick with quarto)?


Solution

  • You can use Quarto to convert your input to GitHub Flavored Markdown (gfm) by using

    format: gfm
    

    It should be possible to use the output with both Quarto and GitHub.

    See also the Quarto docs on gfm.