diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-12-04 22:11:28 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-12-04 22:13:04 -0800 |
| commit | fe03d4d133eb3e7ec3af6d10e595ed1199694a26 (patch) | |
| tree | 3d81f7f3320a7e583a0d5f6e38e10b7372f9104a /src/Text/Pandoc/Readers | |
| parent | ff56d43b50aaeeea014f5c6135aeb8a5123f32cf (diff) | |
Add `alerts` extension.
This enables GitHub style markdown alerts as a commonmark extension.
<https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts>
This extension is now default for `gfm`.
It can't be used with `markdown`, only with `commonmark` and variants.
Diffstat (limited to 'src/Text/Pandoc/Readers')
| -rw-r--r-- | src/Text/Pandoc/Readers/CommonMark.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/CommonMark.hs b/src/Text/Pandoc/Readers/CommonMark.hs index 08f37830e..8d90573de 100644 --- a/src/Text/Pandoc/Readers/CommonMark.hs +++ b/src/Text/Pandoc/Readers/CommonMark.hs @@ -169,6 +169,7 @@ specFor opts = foldr ($) defaultSyntaxSpec exts [ (bracketedSpanSpec <>) | isEnabled Ext_bracketed_spans opts ] ++ [ (rawAttributeSpec <>) | isEnabled Ext_raw_attribute opts ] ++ [ (attributesSpec <>) | isEnabled Ext_attributes opts ] ++ + [ (alertSpec <>) | isEnabled Ext_alerts opts ] ++ [ (<> pipeTableSpec) | isEnabled Ext_pipe_tables opts ] ++ -- see #6739 [ (autolinkSpec <>) | isEnabled Ext_autolink_bare_uris opts ] ++ |
