diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-07-24 00:25:35 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-07-24 00:25:35 +0200 |
commit | e7876d43203a4672e9d5bb10f91d1530272abc7b (patch) | |
tree | 07440e4fd7aca360d925eda0a56af65cfaa37191 /src/Text/Pandoc/Readers | |
parent | d8f07fad09f3b5b0c586dd8a4ba23b19efef6152 (diff) | |
download | pandoc-e7876d43203a4672e9d5bb10f91d1530272abc7b.tar.gz |
LaTeX reader: removed code for non-exported 'macro'.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index b0f8d536e..44be8dea3 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -214,14 +214,6 @@ rawLaTeXParser parser = do updateState (updateMacros ((sMacros st) <>)) takeP (T.length (untokenize raw)) -macro :: (PandocMonad m, HasMacros s, HasReaderOptions s) - => ParserT String s m Blocks -macro = do - guardEnabled Ext_latex_macros - lookAhead (char '\\' *> oneOfStrings ["new", "renew", "provide"] *> - oneOfStrings ["command", "environment"]) - rawBlock "latex" <$> rawLaTeXParser macroDef - applyMacros :: (PandocMonad m, HasMacros s, HasReaderOptions s) => String -> ParserT String s m String applyMacros s = (guardDisabled Ext_latex_macros >> return s) <|> |