How to make quarto preserve a callout div in format: commonmark
?
#9458
-
DescriptionWhen you render a quarto doc with a
results in the following markdown
whereas the existing callout is already comonmark compatible. If I remove the
How can I make quarto respect the existing commonmark format? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Concretely, what's happening is that divs with class With that said, the solution to your problem depends on what you want to do and how you want to solve it. If you're emitting output for a number of different formats and you want to change how Quarto handles Callout nodes in If you're emitting only gfm or commonmark output, and want a snippet of code to be passed through Quarto's pipeline undisturbed, then the solution is to use a raw block which won't be parsed as a Callout node. |
Beta Was this translation helpful? Give feedback.
-
Which version of Quarto are you using? With 1.5 latest I have:
|
Beta Was this translation helpful? Give feedback.
-
Just FYI, I lightly edited the discussion title to make it clearer that the intent of the question is for the div block to be preserved throughout the processing. |
Beta Was this translation helpful? Give feedback.
So in order to get quarto to respect the rendering of the existing commonmark syntax to commonmark syntax e.g.
format: commonmark
, the commonmark syntax needs to be wrapped in the following. Is that correct?