git.iko.soy/typeable/pandoc
on master help sign in
Changed Ext_tex_math to Ext_tex_math_dollars.
commit417cde38af7a77e79f12c9f78b678aec50701af2 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 10 Aug 2012, 21:51 (14 years ago) parent88804c8
3 files changed+5−5
README+1−1 src/Text/Pandoc/Options.hs+2−2 src/Text/Pandoc/Readers/Markdown.hs+2−2
README+1−1
@@ -1752,7 +1752,7 @@ Attributes can be attached to verbatim text, just as with
17521752Math
17531753----
17541754
1755−**Extension: `tex_math`**
1755+**Extension: `tex_math_dollars`**
17561756
17571757Anything between two `$` characters will be treated as TeX math. The
17581758opening `$` 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
5757 | Ext_pipe_tables
5858 | Ext_citations
5959 | Ext_raw_tex
60− | Ext_tex_math
60+ | Ext_tex_math_dollars
6161 | Ext_latex_macros
6262 | Ext_delimited_code_blocks
6363 | Ext_inline_code_attributes
@@ -93,7 +93,7 @@ pandocExtensions = Set.fromList
9393 , Ext_pipe_tables
9494 , Ext_citations
9595 , Ext_raw_tex
96− , Ext_tex_math
96+ , Ext_tex_math_dollars
9797 , Ext_latex_macros
9898 , Ext_delimited_code_blocks
9999 , Ext_inline_code_attributes
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -1184,13 +1184,13 @@ math = (return . B.displayMath <$> (mathDisplay >>= applyMacros'))
11841184
11851185mathDisplay :: Parser [Char] ParserState String
11861186mathDisplay = try $ do
1187− guardEnabled Ext_tex_math
1187+ guardEnabled Ext_tex_math_dollars
11881188 string "$$"
11891189 many1Till (noneOf "\n" <|> (newline >>~ notFollowedBy' blankline)) (try $ string "$$")
11901190
11911191mathInline :: Parser [Char] ParserState String
11921192mathInline = try $ do
1193− guardEnabled Ext_tex_math
1193+ guardEnabled Ext_tex_math_dollars
11941194 char '$'
11951195 notFollowedBy space
11961196 words' <- sepBy1 mathWord (many1 (spaceChar <|> (newline >>~ notFollowedBy' blankline)))