git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: Replace failIfStrict with guardEnabled.
commite797ab9136115caab3d162162bf9d231afc514a0 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 26 Jul 2012, 22:21 (14 years ago) parent14c911b
1 file changed+3−3
src/Text/Pandoc/Readers/Textile.hs+3−3
src/Text/Pandoc/Readers/Textile.hs+3−3
@@ -273,7 +273,7 @@ rawHtmlBlock = try $ do
273273-- | Raw block of LaTeX content
274274rawLaTeXBlock' :: Parser [Char] ParserState Block
275275rawLaTeXBlock' = do
276− failIfStrict
276+ guardEnabled Ext_raw_tex
277277 RawBlock "latex" <$> (rawLaTeXBlock <* spaces)
278278
279279
@@ -464,11 +464,11 @@ endline = try $ do
464464
465465rawHtmlInline :: Parser [Char] ParserState Inline
466466rawHtmlInline = RawInline "html" . snd <$> htmlTag isInlineTag
467−
467+
468468-- | Raw LaTeX Inline
469469rawLaTeXInline' :: Parser [Char] ParserState Inline
470470rawLaTeXInline' = try $ do
471− failIfStrict
471+ guardEnabled Ext_raw_tex
472472 rawLaTeXInline
473473
474474-- | Textile standard link syntax is "label":target. But we