aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-03-14 23:23:07 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2010-03-14 23:23:07 +0000
commit139b2ed6d18940eb41497f5379359b92a347cf61 (patch)
treec235d0c02199609ff6d8a60b5a828faeed8d45f0 /src
parent36a19e0f2e8899a895a4ee0da2bdae86b5443290 (diff)
downloadpandoc-139b2ed6d18940eb41497f5379359b92a347cf61.tar.gz
LaTeX reader: Ignore alt title in section headers.
Partially resolves Issue #202. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1886 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index b6e2e4c0c..233f5a3d5 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -171,6 +171,7 @@ header = try $ do
subs <- many (try (string "sub"))
base <- try (string "section" >> return 1) <|> (string "paragraph" >> return 4)
optional (char '*')
+ optional $ bracketedText '[' ']' -- alt title
char '{'
title' <- manyTill inline (char '}')
spaces