git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: be more tolerant of `&` character.
3c93ac5John MacFarlane
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -1726,7 +1726,7 @@ inline = (mempty <$ comment)
1726 <|> (guardEnabled Ext_literate_haskell *> symbol '|' *> doLHSverb)
1726 <|> (guardEnabled Ext_literate_haskell *> symbol '|' *> doLHSverb)
1727 <|> (str . (:[]) <$> primEscape)
1727 <|> (str . (:[]) <$> primEscape)
1728 <|> regularSymbol
1728 <|> regularSymbol
1729− <|> (do res <- symbolIn "#^'`\"[]"
1729+ <|> (do res <- symbolIn "#^'`\"[]&"
1730 pos <- getPosition
1730 pos <- getPosition
1731 let s = T.unpack (untoken res)
1731 let s = T.unpack (untoken res)
1732 report $ ParsingUnescaped s pos
1732 report $ ParsingUnescaped s pos
test/command/4208.mdnew file+18
@@ -0,0 +1,18 @@
1+```
2+% pandoc -t latex
3+What is a _piffle_? Mark the correct answer(s):
4+
5+\begin{TAB}(@)[6pt]{|l|c|}{|c|c|c|}
6+(a) a subnormal woffle & $\Box$ \\
7+(b) an infinite-dimensional baffle & $\Box$ \\
8+(c) an inverted first-order triffle & $\Box$ \\
9+\end{TAB}
10+^D
11+What is a \emph{piffle}? Mark the correct answer(s):
12+
13+\begin{TAB}(@)[6pt]{|l|c|}{|c|c|c|}
14+(a) a subnormal woffle & $\Box$ \\
15+(b) an infinite-dimensional baffle & $\Box$ \\
16+(c) an inverted first-order triffle & $\Box$ \\
17+\end{TAB}
18+```