mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-14 03:25:51 +00:00
The keywords (e.g. `TIP`) for GFM-style alerts need not be all caps. This commit fixes that. It also adds the class `alert` to the produced Divs to allow for namespacing. This commit changes the emitted classes from the alert extension of the basic Markdown reader to add the class `alert` to the produced DIVs to allow for namespacing.
237 B
237 B
% pandoc -f markdown+alerts -t native
> [!TIP]
> A suggestion.
^D
[ Div
( "" , [ "alert" , "tip" ] , [] )
[ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Tip" ] ]
, Para [ Str "A" , Space , Str "suggestion." ]
]
]