git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: Ignore alt title in section headers.
139b2edfiddlosopher
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -171,6 +171,7 @@ header = try $ do
171 subs <- many (try (string "sub"))
171 subs <- many (try (string "sub"))
172 base <- try (string "section" >> return 1) <|> (string "paragraph" >> return 4)
172 base <- try (string "section" >> return 1) <|> (string "paragraph" >> return 4)
173 optional (char '*')
173 optional (char '*')
174+ optional $ bracketedText '[' ']' -- alt title
174 char '{'
175 char '{'
175 title' <- manyTill inline (char '}')
176 title' <- manyTill inline (char '}')
176 spaces
177 spaces
tests/latex-reader.latex+1−1
@@ -35,7 +35,7 @@ Level 4
35
35
36Level 5
36Level 5
37
37
38−\section{Level 1}
38+\section[alt title ignored]{Level 1}
39
39
40\subsection{Level 2 with \emph{emphasis}}
40\subsection{Level 2 with \emph{emphasis}}
41
41