@@ -80,79 +80,79 @@ disableExtension x (Extensions exts) = Extensions (clearBit exts (fromEnum x))
8080
8181-- | Individually selectable syntax extensions.
8282data Extension =
83− Ext_footnotes -- ^ Pandoc/PHP/MMD style footnotes
84− | Ext_inline_notes -- ^ Pandoc-style inline notes
85− | Ext_pandoc_title_block -- ^ Pandoc title block
86− | Ext_yaml_metadata_block -- ^ YAML metadata block
87− | Ext_mmd_title_block -- ^ Multimarkdown metadata block
88− | Ext_table_captions -- ^ Pandoc-style table captions
89− | Ext_implicit_figures -- ^ A paragraph with just an image is a figure
90− | Ext_simple_tables -- ^ Pandoc-style simple tables
91− | Ext_multiline_tables -- ^ Pandoc-style multiline tables
92− | Ext_grid_tables -- ^ Grid tables (pandoc, reST)
93− | Ext_pipe_tables -- ^ Pipe tables (as in PHP markdown extra)
94− | Ext_citations -- ^ Pandoc/citeproc citations
95− | Ext_raw_tex -- ^ Allow raw TeX (other than math)
96− | Ext_raw_html -- ^ Allow raw HTML
97− | Ext_tex_math_dollars -- ^ TeX math between $..$ or $$..$$
98− | Ext_tex_math_single_backslash -- ^ TeX math btw \(..\) \[..\]
99− | Ext_tex_math_double_backslash -- ^ TeX math btw \\(..\\) \\[..\\]
100− | Ext_latex_macros -- ^ Parse LaTeX macro definitions (for math only)
101− | Ext_fenced_code_blocks -- ^ Parse fenced code blocks
102− | Ext_fenced_code_attributes -- ^ Allow attributes on fenced code blocks
103− | Ext_backtick_code_blocks -- ^ GitHub style ``` code blocks
104− | Ext_inline_code_attributes -- ^ Allow attributes on inline code
105− | Ext_raw_attribute -- ^ Allow explicit raw blocks/inlines
106− | Ext_markdown_in_html_blocks -- ^ Interpret as markdown inside HTML blocks
107− | Ext_native_divs -- ^ Use Div blocks for contents of <div> tags
108− | Ext_fenced_divs -- ^ Allow fenced div syntax :::
109− | Ext_native_spans -- ^ Use Span inlines for contents of <span>
110− | Ext_bracketed_spans -- ^ Bracketed spans with attributes
111− | Ext_markdown_attribute -- ^ Interpret text inside HTML as markdown
112− -- iff container has attribute 'markdown'
113− | Ext_escaped_line_breaks -- ^ Treat a backslash at EOL as linebreak
114− | Ext_link_attributes -- ^ link and image attributes
115− | Ext_mmd_link_attributes -- ^ MMD style reference link attributes
116− | Ext_autolink_bare_uris -- ^ Make all absolute URIs into links
117− | Ext_fancy_lists -- ^ Enable fancy list numbers and delimiters
118− | Ext_lists_without_preceding_blankline -- ^ Allow lists without preceding blank
119− | Ext_four_space_rule -- ^ Require 4-space indent for list contents
120− | Ext_startnum -- ^ Make start number of ordered list significant
121− | Ext_definition_lists -- ^ Definition lists as in pandoc, mmd, php
122− | Ext_compact_definition_lists -- ^ Definition lists without
123− -- space between items, and disallow laziness
124− | Ext_example_lists -- ^ Markdown-style numbered examples
83+ Ext_abbreviations -- ^ PHP markdown extra abbreviation definitions
12584 | Ext_all_symbols_escapable -- ^ Make all non-alphanumerics escapable
85+ | Ext_amuse -- ^ Enable Text::Amuse extensions to Emacs Muse markup
12686 | Ext_angle_brackets_escapable -- ^ Make < and > escapable
127− | Ext_intraword_underscores -- ^ Treat underscore inside word as literal
87+ | Ext_ascii_identifiers -- ^ ascii-only identifiers for headers
88+ | Ext_auto_identifiers -- ^ Automatic identifiers for headers
89+ | Ext_autolink_bare_uris -- ^ Make all absolute URIs into links
90+ | Ext_backtick_code_blocks -- ^ GitHub style ``` code blocks
12891 | Ext_blank_before_blockquote -- ^ Require blank line before a blockquote
12992 | Ext_blank_before_header -- ^ Require blank line before a header
130− | Ext_space_in_atx_header -- ^ Require space between # and header text
131− | Ext_strikeout -- ^ Strikeout using ~~this~~ syntax
132− | Ext_superscript -- ^ Superscript using ^this^ syntax
133− | Ext_subscript -- ^ Subscript using ~this~ syntax
134− | Ext_hard_line_breaks -- ^ All newlines become hard line breaks
135− | Ext_ignore_line_breaks -- ^ Newlines in paragraphs are ignored
93+ | Ext_bracketed_spans -- ^ Bracketed spans with attributes
94+ | Ext_citations -- ^ Pandoc/citeproc citations
95+ | Ext_compact_definition_lists -- ^ Definition lists without space between items,
96+ -- and disallow laziness
97+ | Ext_definition_lists -- ^ Definition lists as in pandoc, mmd, php
13698 | Ext_east_asian_line_breaks -- ^ Newlines in paragraphs are ignored between
137− -- East Asian wide characters
138− | Ext_literate_haskell -- ^ Enable literate Haskell conventions
139− | Ext_abbreviations -- ^ PHP markdown extra abbreviation definitions
99+ -- East Asian wide characters
140100 | Ext_emoji -- ^ Support emoji like :smile:
141− | Ext_auto_identifiers -- ^ Automatic identifiers for headers
142− | Ext_gfm_auto_identifiers -- ^ Automatic identifiers for headers,
143− -- using GitHub's method for generating identifiers
144− | Ext_ascii_identifiers -- ^ ascii-only identifiers for headers
101+ | Ext_empty_paragraphs -- ^ Allow empty paragraphs
102+ | Ext_epub_html_exts -- ^ Recognise the EPUB extended version of HTML
103+ | Ext_escaped_line_breaks -- ^ Treat a backslash at EOL as linebreak
104+ | Ext_example_lists -- ^ Markdown-style numbered examples
105+ | Ext_fancy_lists -- ^ Enable fancy list numbers and delimiters
106+ | Ext_fenced_code_attributes -- ^ Allow attributes on fenced code blocks
107+ | Ext_fenced_code_blocks -- ^ Parse fenced code blocks
108+ | Ext_fenced_divs -- ^ Allow fenced div syntax :::
109+ | Ext_footnotes -- ^ Pandoc/PHP/MMD style footnotes
110+ | Ext_four_space_rule -- ^ Require 4-space indent for list contents
111+ | Ext_gfm_auto_identifiers -- ^ Automatic identifiers for headers, using
112+ -- GitHub's method for generating identifiers
113+ | Ext_grid_tables -- ^ Grid tables (pandoc, reST)
114+ | Ext_hard_line_breaks -- ^ All newlines become hard line breaks
145115 | Ext_header_attributes -- ^ Explicit header attributes {#id .class k=v}
146− | Ext_mmd_header_identifiers -- ^ Multimarkdown style header identifiers [myid]
116+ | Ext_ignore_line_breaks -- ^ Newlines in paragraphs are ignored
117+ | Ext_implicit_figures -- ^ A paragraph with just an image is a figure
147118 | Ext_implicit_header_references -- ^ Implicit reference links for headers
119+ | Ext_inline_code_attributes -- ^ Allow attributes on inline code
120+ | Ext_inline_notes -- ^ Pandoc-style inline notes
121+ | Ext_intraword_underscores -- ^ Treat underscore inside word as literal
122+ | Ext_latex_macros -- ^ Parse LaTeX macro definitions (for math only)
148123 | Ext_line_blocks -- ^ RST style line blocks
149− | Ext_epub_html_exts -- ^ Recognise the EPUB extended version of HTML
124+ | Ext_link_attributes -- ^ link and image attributes
125+ | Ext_lists_without_preceding_blankline -- ^ Allow lists without preceding blank
126+ | Ext_literate_haskell -- ^ Enable literate Haskell conventions
127+ | Ext_markdown_attribute -- ^ Interpret text inside HTML as markdown iff
128+ -- container has attribute 'markdown'
129+ | Ext_markdown_in_html_blocks -- ^ Interpret as markdown inside HTML blocks
130+ | Ext_mmd_header_identifiers -- ^ Multimarkdown style header identifiers [myid]
131+ | Ext_mmd_link_attributes -- ^ MMD style reference link attributes
132+ | Ext_mmd_title_block -- ^ Multimarkdown metadata block
133+ | Ext_multiline_tables -- ^ Pandoc-style multiline tables
134+ | Ext_native_divs -- ^ Use Div blocks for contents of <div> tags
135+ | Ext_native_spans -- ^ Use Span inlines for contents of <span>
136+ | Ext_old_dashes -- ^ -- = em, - before number = en
137+ | Ext_pandoc_title_block -- ^ Pandoc title block
138+ | Ext_pipe_tables -- ^ Pipe tables (as in PHP markdown extra)
139+ | Ext_raw_attribute -- ^ Allow explicit raw blocks/inlines
140+ | Ext_raw_html -- ^ Allow raw HTML
141+ | Ext_raw_tex -- ^ Allow raw TeX (other than math)
150142 | Ext_shortcut_reference_links -- ^ Shortcut reference links
143+ | Ext_simple_tables -- ^ Pandoc-style simple tables
151144 | Ext_smart -- ^ "Smart" quotes, apostrophes, ellipses, dashes
152− | Ext_old_dashes -- ^ -- = em, - before number = en
145+ | Ext_space_in_atx_header -- ^ Require space between # and header text
153146 | Ext_spaced_reference_links -- ^ Allow space between two parts of ref link
154− | Ext_amuse -- ^ Enable Text::Amuse extensions to Emacs Muse markup
155− | Ext_empty_paragraphs -- ^ Allow empty paragraphs
147+ | Ext_startnum -- ^ Make start number of ordered list significant
148+ | Ext_strikeout -- ^ Strikeout using ~~this~~ syntax
149+ | Ext_subscript -- ^ Subscript using ~this~ syntax
150+ | Ext_superscript -- ^ Superscript using ^this^ syntax
151+ | Ext_table_captions -- ^ Pandoc-style table captions
152+ | Ext_tex_math_dollars -- ^ TeX math between $..$ or $$..$$
153+ | Ext_tex_math_double_backslash -- ^ TeX math btw \\(..\\) \\[..\\]
154+ | Ext_tex_math_single_backslash -- ^ TeX math btw \(..\) \[..\]
155+ | Ext_yaml_metadata_block -- ^ YAML metadata block
156156 deriving (Show, Read, Enum, Eq, Ord, Bounded, Data, Typeable, Generic)
157157
158158-- | Extensions to be used with pandoc-flavored markdown.