Markdown reader: case-insensitive alert keywords (#11836)

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.
This commit is contained in:
Hendrik Erz authored and GitHub committed 2026-08-29 17:25:41 -07:00
1 parent b913622e1f
commit fa0dfdf0e1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
> A suggestion.
^D
[ Div
( "" , [ "tip" ] , [] )
( "" , [ "alert" , "tip" ] , [] )
[ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Tip" ] ]
, Para [ Str "A" , Space , Str "suggestion." ]
]