Markdown reader: fixed parsing bug with macros.
Previously macro definitions in indented code blocks were being parsed as macro definitions, not code.
This commit is contained in:
parent
ad3ef55031
commit
e20f433f38
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,6 @@ block = do
|
||||||
res <- choice [ mempty <$ blanklines
|
res <- choice [ mempty <$ blanklines
|
||||||
, codeBlockFenced
|
, codeBlockFenced
|
||||||
, yamlMetaBlock
|
, yamlMetaBlock
|
||||||
, guardEnabled Ext_latex_macros *> (macro >>= return . return)
|
|
||||||
-- note: bulletList needs to be before header because of
|
-- note: bulletList needs to be before header because of
|
||||||
-- the possibility of empty list items: -
|
-- the possibility of empty list items: -
|
||||||
, bulletList
|
, bulletList
|
||||||
|
@ -494,6 +493,7 @@ block = do
|
||||||
, htmlBlock
|
, htmlBlock
|
||||||
, table
|
, table
|
||||||
, codeBlockIndented
|
, codeBlockIndented
|
||||||
|
, guardEnabled Ext_latex_macros *> (macro >>= return . return)
|
||||||
, rawTeXBlock
|
, rawTeXBlock
|
||||||
, lineBlock
|
, lineBlock
|
||||||
, blockQuote
|
, blockQuote
|
||||||
|
|
Loading…
Add table
Reference in a new issue