git.iko.soy/typeable/pandoc
on master help sign in
Changed Ext_tex_math to Ext_tex_math_dollars.
417cde3John MacFarlane
README+1−1
@@ -1752,7 +1752,7 @@ Attributes can be attached to verbatim text, just as with
1752Math
1752Math
1753----
1753----
1754
1754
1755−**Extension: `tex_math`**
1755+**Extension: `tex_math_dollars`**
1756
1756
1757Anything between two `$` characters will be treated as TeX math. The
1757Anything between two `$` characters will be treated as TeX math. The
1758opening `$` must have a character immediately to its right, while the
1758opening `$` must have a character immediately to its right, while the
src/Text/Pandoc/Options.hs+2−2
@@ -57,7 +57,7 @@ data Extension = Ext_footnotes
57 | Ext_pipe_tables
57 | Ext_pipe_tables
58 | Ext_citations
58 | Ext_citations
59 | Ext_raw_tex
59 | Ext_raw_tex
60− | Ext_tex_math
60+ | Ext_tex_math_dollars
61 | Ext_latex_macros
61 | Ext_latex_macros
62 | Ext_delimited_code_blocks
62 | Ext_delimited_code_blocks
63 | Ext_inline_code_attributes
63 | Ext_inline_code_attributes
@@ -93,7 +93,7 @@ pandocExtensions = Set.fromList
93 , Ext_pipe_tables
93 , Ext_pipe_tables
94 , Ext_citations
94 , Ext_citations
95 , Ext_raw_tex
95 , Ext_raw_tex
96− , Ext_tex_math
96+ , Ext_tex_math_dollars
97 , Ext_latex_macros
97 , Ext_latex_macros
98 , Ext_delimited_code_blocks
98 , Ext_delimited_code_blocks
99 , Ext_inline_code_attributes
99 , Ext_inline_code_attributes
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -1184,13 +1184,13 @@ math = (return . B.displayMath <$> (mathDisplay >>= applyMacros'))
1184
1184
1185mathDisplay :: Parser [Char] ParserState String
1185mathDisplay :: Parser [Char] ParserState String
1186mathDisplay = try $ do
1186mathDisplay = try $ do
1187− guardEnabled Ext_tex_math
1187+ guardEnabled Ext_tex_math_dollars
1188 string "$$"
1188 string "$$"
1189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
1189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
1190
1190
1191mathInline :: Parser [Char] ParserState String
1191mathInline :: Parser [Char] ParserState String
1192mathInline = try $ do
1192mathInline = try $ do
1193− guardEnabled Ext_tex_math
1193+ guardEnabled Ext_tex_math_dollars
1194 char '$'
1194 char '$'
1195 notFollowedBy space
1195 notFollowedBy space
1196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))
1196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))