git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: fixed parsing of \texorpdfstring.

We were returning the wrong argument as the content.

commit889254e1d5c7b683b93f623207347a773e25776b authorJohn MacFarlane <jgm@berkeley.edu> dateWed 29 Aug 2018, 15:50 (8 years ago) parent85ed24e
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -1690,7 +1690,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
16901690 , ("(", mathInline . toksToString <$> manyTill anyTok (controlSeq ")"))
16911691 , ("[", mathDisplay . toksToString <$> manyTill anyTok (controlSeq "]"))
16921692 , ("ensuremath", mathInline . toksToString <$> braced)
1693− , ("texorpdfstring", (\_ x -> x) <$> tok <*> tok)
1693+ , ("texorpdfstring", (\x _ -> x) <$> tok <*> tok)
16941694 , ("P", lit "¶")
16951695 , ("S", lit "§")
16961696 , ("$", lit "$")