git.iko.soy/typeable/pandoc
on master help sign in
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

commit139b2ed6d18940eb41497f5379359b92a347cf61 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 14 Mar 2010, 23:23 (17 years ago) parent36a19e0
2 files changed+2−1
src/Text/Pandoc/Readers/LaTeX.hs+1 tests/latex-reader.latex+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -171,6 +171,7 @@ header = try $ do
171171 subs <- many (try (string "sub"))
172172 base <- try (string "section" >> return 1) <|> (string "paragraph" >> return 4)
173173 optional (char '*')
174+ optional $ bracketedText '[' ']' -- alt title
174175 char '{'
175176 title' <- manyTill inline (char '}')
176177 spaces
tests/latex-reader.latex+1−1
@@ -35,7 +35,7 @@ Level 4
3535
3636Level 5
3737
38−\section{Level 1}
38+\section[alt title ignored]{Level 1}
3939
4040\subsection{Level 2 with \emph{emphasis}}
4141