Trim down githubMarkdownExtensions.
Previously it included all of the following, which make sense for the legacy markdown_github but not for gfm, since they are part of base commonmark and thus can't be turned off in gfm: - `Ext_all_symbols_escapable` - `Ext_backtick_code_blocks` - `Ext_fenced_code_blocks` - `Ext_space_in_atx_header` - `Ext_intraword_underscores` - `Ext_lists_without_preceding_blankline` - `Ext_shortcut_reference_links` ` These have been removed from `githubMarkdownExtensions`, though they're still turned on for legacy `markdown_github`.
This commit is contained in:
parent
8d523d80d4
commit
3a22fbd11b
2 changed files with 12 additions and 10 deletions
|
@ -243,21 +243,14 @@ phpMarkdownExtraExtensions = extensionsFromList
|
|||
-- | Extensions to be used with github-flavored markdown.
|
||||
githubMarkdownExtensions :: Extensions
|
||||
githubMarkdownExtensions = extensionsFromList
|
||||
[ Ext_all_symbols_escapable
|
||||
, Ext_pipe_tables
|
||||
[ Ext_pipe_tables
|
||||
, Ext_raw_html
|
||||
, Ext_fenced_code_blocks
|
||||
, Ext_auto_identifiers
|
||||
, Ext_gfm_auto_identifiers
|
||||
, Ext_backtick_code_blocks
|
||||
, Ext_autolink_bare_uris
|
||||
, Ext_space_in_atx_header
|
||||
, Ext_intraword_underscores
|
||||
, Ext_strikeout
|
||||
, Ext_task_lists
|
||||
, Ext_emoji
|
||||
, Ext_lists_without_preceding_blankline
|
||||
, Ext_shortcut_reference_links
|
||||
]
|
||||
|
||||
-- | Extensions to be used with multimarkdown.
|
||||
|
@ -309,7 +302,16 @@ getDefaultExtensions :: T.Text -> Extensions
|
|||
getDefaultExtensions "markdown_strict" = strictExtensions
|
||||
getDefaultExtensions "markdown_phpextra" = phpMarkdownExtraExtensions
|
||||
getDefaultExtensions "markdown_mmd" = multimarkdownExtensions
|
||||
getDefaultExtensions "markdown_github" = githubMarkdownExtensions
|
||||
getDefaultExtensions "markdown_github" = githubMarkdownExtensions <>
|
||||
extensionsFromList
|
||||
[ Ext_all_symbols_escapable
|
||||
, Ext_backtick_code_blocks
|
||||
, Ext_fenced_code_blocks
|
||||
, Ext_space_in_atx_header
|
||||
, Ext_intraword_underscores
|
||||
, Ext_lists_without_preceding_blankline
|
||||
, Ext_shortcut_reference_links
|
||||
]
|
||||
getDefaultExtensions "markdown" = pandocExtensions
|
||||
getDefaultExtensions "ipynb" =
|
||||
extensionsFromList
|
||||
|
|
|
@ -28,7 +28,7 @@ extra-deps:
|
|||
- HsYAML-aeson-0.2.0.0
|
||||
- doctemplates-0.8.2
|
||||
- git: https://github.com/jgm/commonmark-hs
|
||||
commit: 4a632d079e82f679a4aad598f7c9701df81c370f
|
||||
commit: a0ecfba10405ab9cfc285f531f4d98e5453234c1
|
||||
subdirs:
|
||||
- commonmark
|
||||
- commonmark-extensions
|
||||
|
|
Loading…
Add table
Reference in a new issue