aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-24 00:25:35 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-24 00:25:35 +0200
commite7876d43203a4672e9d5bb10f91d1530272abc7b (patch)
tree07440e4fd7aca360d925eda0a56af65cfaa37191 /src/Text/Pandoc/Readers
parentd8f07fad09f3b5b0c586dd8a4ba23b19efef6152 (diff)
downloadpandoc-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.hs8
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) <|>