git.iko.soy/typeable/pandoc
on master help sign in
Added comments in Options.
c7bd034John MacFarlane
src/Text/Pandoc/Options.hs+40−38
@@ -46,44 +46,46 @@ import Data.Default
46import Text.Pandoc.Highlighting (Style, pygments)
46import Text.Pandoc.Highlighting (Style, pygments)
47
47
48-- | Individually selectable syntax extensions.
48-- | Individually selectable syntax extensions.
49−data Extension = Ext_footnotes
49+data Extension =
50+ Ext_footnotes -- ^ Pandoc/PHP/MMD style footnotes
50− | Ext_inline_notes
51+ | Ext_inline_notes -- ^ Pandoc-style inline notes
51− | Ext_pandoc_title_block
52+ | Ext_pandoc_title_block -- ^ Pandoc title block
52− | Ext_mmd_title_block
53+ | Ext_mmd_title_block -- ^ Multimarkdown metadata block
53− | Ext_table_captions
54+ | Ext_table_captions -- ^ Pandoc-style table captions
54− -- | Ext_image_captions
55+ -- | Ext_image_captions
55− | Ext_simple_tables
56+ | Ext_simple_tables -- ^ Pandoc-style simple tables
56− | Ext_multiline_tables
57+ | Ext_multiline_tables -- ^ Pandoc-style multiline tables
57− | Ext_grid_tables
58+ | Ext_grid_tables -- ^ Grid tables (pandoc, reST)
58− | Ext_pipe_tables
59+ | Ext_pipe_tables -- ^ Pipe tables (as in PHP markdown extra)
59− | Ext_citations
60+ | Ext_citations -- ^ Pandoc/citeproc citations
60− | Ext_raw_tex
61+ | Ext_raw_tex -- ^ Allow raw TeX (other than math)
61− | Ext_raw_html
62+ | Ext_raw_html -- ^ Allow raw HTML
62− | Ext_tex_math_dollars
63+ | Ext_tex_math_dollars -- ^ TeX math between $..$ or $$..$$
63− | Ext_tex_math_single_backslash
64+ | Ext_tex_math_single_backslash -- ^ TeX math btw \(..\) \[..\]
64− | Ext_tex_math_double_backslash
65+ | Ext_tex_math_double_backslash -- ^ TeX math btw \\(..\\) \\[..\\]
65− | Ext_latex_macros
66+ | Ext_latex_macros -- ^ Parse LaTeX macro definitions (for math only)
66− | Ext_delimited_code_blocks
67+ | Ext_delimited_code_blocks -- ^ Parse delimited code blocks
67− | Ext_inline_code_attributes
68+ | Ext_inline_code_attributes -- ^ Allow attributes on inline code
68− | Ext_markdown_in_html_blocks
69+ | Ext_markdown_in_html_blocks -- ^ Interpret as markdown inside HTML blocks
69− | Ext_markdown_attribute
70+ | Ext_markdown_attribute -- ^ Interpret text inside HTML as markdown
71+ -- iff container has attribute 'markdown'
70− | Ext_escaped_line_breaks
72+ | Ext_escaped_line_breaks -- ^ Treat a backslash at EOL as linebreak
71− | Ext_autolink_code_spans
73+ | Ext_autolink_code_spans -- ^ Put autolink text inside code spans
72− | Ext_fancy_lists
74+ | Ext_fancy_lists -- ^ Enable fancy list numbers and delimiters
73− | Ext_startnum
75+ | Ext_startnum -- ^ Make start number of ordered list significant
74− | Ext_definition_lists
76+ | Ext_definition_lists -- ^ Definition lists as in pandoc, mmd, php
75− | Ext_example_lists
77+ | Ext_example_lists -- ^ Markdown-style numbered examples
76− | Ext_all_symbols_escapable
78+ | Ext_all_symbols_escapable -- ^ Make all non-alphanumerics escapable
77− | Ext_intraword_underscores
79+ | Ext_intraword_underscores -- ^ Treat underscore inside word as literal
78− | Ext_blank_before_blockquote
80+ | Ext_blank_before_blockquote -- ^ Require blank line before a blockquote
79− | Ext_blank_before_header
81+ | Ext_blank_before_header -- ^ Require blank line before a header
80− -- | Ext_significant_bullets
82+ -- | Ext_significant_bullets
81− | Ext_strikeout
83+ | Ext_strikeout -- ^ Strikeout using ~~this~~ syntax
82− | Ext_superscript
84+ | Ext_superscript -- ^ Superscript using ^this^ syntax
83− | Ext_subscript
85+ | Ext_subscript -- ^ Subscript using ~this~ syntax
84− | Ext_hard_line_breaks
86+ | Ext_hard_line_breaks -- ^ All newlines become hard line breaks
85− | Ext_literate_haskell
87+ | Ext_literate_haskell -- ^ Enable literate Haskell conventions
86− deriving (Show, Read, Enum, Eq, Ord, Bounded)
88+ deriving (Show, Read, Enum, Eq, Ord, Bounded)
87
89
88pandocExtensions :: Set Extension
90pandocExtensions :: Set Extension
89pandocExtensions = Set.fromList
91pandocExtensions = Set.fromList