@@ -66,10 +66,6 @@ hruleChars = "*-_"
66setextHChars :: [Char]
66setextHChars :: [Char]
67setextHChars = "=-"
67setextHChars = "=-"
69−-- treat these as potentially non-text when parsing inline:
70−specialChars :: [Char]
71−specialChars = "\\[]*_~`<>$!^-.&@'\";\8216\8217\8220\8221"
74-- auxiliary functions
70-- auxiliary functions
@@ -296,6 +292,7 @@ block = do
296 , bulletList
292 , bulletList
297 , orderedList
293 , orderedList
298 , definitionList
294 , definitionList
300 , rawHtmlBlocks
297 , rawHtmlBlocks
@@ -698,6 +695,13 @@ rawVerbatimBlock = try $ do
698 contents <- manyTill anyChar (htmlTag (~== TagClose tag))
695 contents <- manyTill anyChar (htmlTag (~== TagClose tag))
699 return $ open ++ contents ++ renderTags [TagClose tag]
696 return $ open ++ contents ++ renderTags [TagClose tag]
698+rawTeXBlock :: GenParser Char ParserState Block
701+ result <- rawLaTeXEnvironment' <|> rawConTeXtEnvironment'
703+ return $ Para [TeX result]
701rawHtmlBlocks :: GenParser Char ParserState Block
705rawHtmlBlocks :: GenParser Char ParserState Block
702rawHtmlBlocks = do
706rawHtmlBlocks = do
703 htmlBlocks <- many1 $ do blk <- rawVerbatimBlock <|>
707 htmlBlocks <- many1 $ do blk <- rawVerbatimBlock <|>
@@ -933,9 +937,6 @@ ltSign = do
933 else notFollowedBy' rawHtmlBlocks >> char '<' -- unless it starts html
937 else notFollowedBy' rawHtmlBlocks >> char '<' -- unless it starts html
934 return $ Str ['<']
938 return $ Str ['<']
936−specialCharsMinusLt :: [Char]
937−specialCharsMinusLt = filter (/= '<') specialChars
939exampleRef :: GenParser Char ParserState Inline
940exampleRef :: GenParser Char ParserState Inline
940exampleRef = try $ do
941exampleRef = try $ do
@@ -1028,9 +1029,6 @@ whitespace = spaceChar >>
1028nonEndline :: GenParser Char st Char
1029nonEndline :: GenParser Char st Char
1029nonEndline = satisfy (/='\n')
1030nonEndline = satisfy (/='\n')
1031−strChar :: GenParser Char st Char
1032−strChar = noneOf (specialChars ++ " \t\n")
1034str :: GenParser Char ParserState Inline
1032str :: GenParser Char ParserState Inline
1036 a <- alphaNum
1034 a <- alphaNum