LaTeX reader: fixed parsing of \texorpdfstring.

We were returning the wrong argument as the content.
This commit is contained in:
John MacFarlane 2018-08-29 15:50:51 -07:00
parent 85ed24e849
commit 889254e1d5

View file

@ -1690,7 +1690,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
, ("(", mathInline . toksToString <$> manyTill anyTok (controlSeq ")"))
, ("[", mathDisplay . toksToString <$> manyTill anyTok (controlSeq "]"))
, ("ensuremath", mathInline . toksToString <$> braced)
, ("texorpdfstring", (\_ x -> x) <$> tok <*> tok)
, ("texorpdfstring", (\x _ -> x) <$> tok <*> tok)
, ("P", lit "")
, ("S", lit "§")
, ("$", lit "$")