git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: Removed raw LaTeX parsing.

This isn't part of Textile.

commitbb61624bb2bba416e1992ecdf101f9660a3edcae authorJohn MacFarlane <jgm@berkeley.edu> dateWed 7 Aug 2013, 14:30 (13 years ago) parentd44d166
1 file changed−16
src/Text/Pandoc/Readers/Textile.hs−16
src/Text/Pandoc/Readers/Textile.hs−16
@@ -56,7 +56,6 @@ import Text.Pandoc.Shared
5656import Text.Pandoc.Options
5757import Text.Pandoc.Parsing
5858import Text.Pandoc.Readers.HTML ( htmlTag, isInlineTag, isBlockTag )
59−import Text.Pandoc.Readers.LaTeX ( rawLaTeXInline, rawLaTeXBlock )
6059import Text.HTML.TagSoup (parseTags, innerText, fromAttrib, Tag(..))
6160import Text.HTML.TagSoup.Match
6261import Data.List ( intercalate )
@@ -126,7 +125,6 @@ blockParsers = [ codeBlock
126125 , commentBlock
127126 , anyList
128127 , rawHtmlBlock
129− , rawLaTeXBlock'
130128 , maybeExplicitBlock "table" table
131129 , maybeExplicitBlock "p" para
132130 ]
@@ -292,13 +290,6 @@ rawHtmlBlock = try $ do
292290 optional blanklines
293291 return $ RawBlock "html" b
294292
295−-- | Raw block of LaTeX content
296−rawLaTeXBlock' :: Parser [Char] ParserState Block
297−rawLaTeXBlock' = do
298− guardEnabled Ext_raw_tex
299− RawBlock "latex" <$> (rawLaTeXBlock <* spaces)
300−
301−
302293-- | In textile, paragraphs are separated by blank lines.
303294para :: Parser [Char] ParserState Block
304295para = try $ Para . normalizeSpaces <$> manyTill inline blockBreak
@@ -373,7 +364,6 @@ inlineParsers = [ str
373364 , escapedInline
374365 , htmlSpan
375366 , rawHtmlInline
376− , rawLaTeXInline'
377367 , note
378368 , try $ (char '[' *> inlineMarkup <* char ']')
379369 , inlineMarkup
@@ -489,12 +479,6 @@ endline = try $ do
489479rawHtmlInline :: Parser [Char] ParserState Inline
490480rawHtmlInline = RawInline "html" . snd <$> htmlTag isInlineTag
491481
492−-- | Raw LaTeX Inline
493−rawLaTeXInline' :: Parser [Char] ParserState Inline
494−rawLaTeXInline' = try $ do
495− guardEnabled Ext_raw_tex
496− rawLaTeXInline
497−
498482-- | Textile standard link syntax is "label":target. But we
499483-- can also have ["label":target].
500484link :: Parser [Char] ParserState Inline