Callout boxes for markdown output #1495
Replies: 3 comments 5 replies
-
Callouts for HTML requires requires Bootstrap for styling. With markdown outputs, you can't really add styling for the callouts. Often styling will depend of the previewer of renderer of Markdown to HTML. Callouts in GFM won't work for example. How do you see things regarding inserting HTML blocks requiring an external lib like bootstrap in a markdown file ? |
Beta Was this translation helpful? Give feedback.
-
Github-flavored markdown seems to support callouts like >[!NOTE]
> a note
>[!WARNING]
> a warning
>[!IMPORTANT]
> something important Note a note Warning a warning Important something important It would be nice if the corresponding callouts in Quarto were translated to this upon rendering to |
Beta Was this translation helpful? Give feedback.
-
Closing in favour of: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
In the doc about
callouts
(https://quarto.org/docs/authoring/callouts.html),markdown
is not part of the supported format. Since it is possible to embed html blocks within.md
, would it be possible to addmarkdown
to the supported format ?I suppose this means adding something based on
_quarto.format.isMarkdownOutput()
to the list of supported formats :quarto-cli/src/resources/filters/quarto-pre/callout.lua
Lines 60 to 61 in 852c9bb
I guess this should be far easier than Callout boxes for ipynb output #1167 since in my mind this could really be the same output than the HTML version (
return calloutDiv(div)
).Please tell me if I don't see some drawbacks (I am unfamiliar with
lua
so might miss some difficulties)Beta Was this translation helpful? Give feedback.
All reactions