Modified readers for new parameter in CodeBlock.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1199 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
6a921f0966
commit
9f7a14c210
4 changed files with 6 additions and 6 deletions
|
@ -407,7 +407,7 @@ codeBlock = try $ do
|
|||
let result''' = if "\n" `isSuffixOf` result''
|
||||
then init result''
|
||||
else result''
|
||||
return $ CodeBlock $ decodeCharacterReferences result'''
|
||||
return $ CodeBlock "" $ decodeCharacterReferences result'''
|
||||
|
||||
--
|
||||
-- block quotes
|
||||
|
|
|
@ -182,14 +182,14 @@ codeBlock1 = try $ do
|
|||
-- leading space
|
||||
contents <- manyTill anyChar (try (string "\\end{verbatim}"))
|
||||
spaces
|
||||
return $ CodeBlock (stripTrailingNewlines contents)
|
||||
return $ CodeBlock "" (stripTrailingNewlines contents)
|
||||
|
||||
codeBlock2 = try $ do
|
||||
string "\\begin{Verbatim}" -- used by fancyvrb package
|
||||
option "" blanklines
|
||||
optional blanklines
|
||||
contents <- manyTill anyChar (try (string "\\end{Verbatim}"))
|
||||
spaces
|
||||
return $ CodeBlock (stripTrailingNewlines contents)
|
||||
return $ CodeBlock "" (stripTrailingNewlines contents)
|
||||
|
||||
--
|
||||
-- block quotes
|
||||
|
|
|
@ -301,7 +301,7 @@ codeBlock = do
|
|||
l <- indentedLine
|
||||
return $ b ++ l))
|
||||
optional blanklines
|
||||
return $ CodeBlock $ stripTrailingNewlines $ concat contents
|
||||
return $ CodeBlock "" $ stripTrailingNewlines $ concat contents
|
||||
|
||||
--
|
||||
-- block quotes
|
||||
|
|
|
@ -304,7 +304,7 @@ indentedBlock = do
|
|||
codeBlock = try $ do
|
||||
codeBlockStart
|
||||
result <- indentedBlock
|
||||
return $ CodeBlock $ stripTrailingNewlines result
|
||||
return $ CodeBlock "" $ stripTrailingNewlines result
|
||||
|
||||
--
|
||||
-- raw html
|
||||
|
|
Loading…
Add table
Reference in a new issue