Skip to content

Is pre-computed .qmd valid pandoc markdown? #11628

Answered by cscheid
noamross asked this question in Q&A
Discussion options

You must be logged in to vote

Two bits of genuinely custom syntax in Quarto:

  • shortcodes, especially if you want substrings like -- or *hello* to not be converted to markdown. (For example, Pandoc will butcher {{< video https://youtube.com/this--are--not--en-dashes >}})

  • executable code cells. Pandoc 3 doesn't like the following syntax:

    ```{python}
    print("Hello, world")
    ```
    

    Look at this:

    $ pandoc -f markdown -t native
    ```{python}
    print("Hello, world")
    ```
    ^D
    [ Para
        [ Code ( "" , [] , [] ) "{python} print(\"hello, world\")" ]
    ]
    $ pandoc -f markdown -t native
    ```python
    print("Hello, world")
    ```
    ^D
    [ CodeBlock
        ( "" , [ "python" ] , [] ) "print(\"Hello, world\")"
    ] 
    

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@mcanouil
Comment options

mcanouil Dec 7, 2024
Collaborator

@noamross
Comment options

@mcanouil
Comment options

mcanouil Dec 7, 2024
Collaborator

@cscheid
Comment options

Answer selected by noamross
@cscheid
Comment options

@noamross
Comment options

@cscheid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
pandoc markdown-pipeline Related to markdown rendering outside the main document
3 participants