LaTeX reader: fixed parsing of \texorpdfstring.
We were returning the wrong argument as the content.
This commit is contained in:
parent
85ed24e849
commit
889254e1d5
1 changed files with 1 additions and 1 deletions
|
@ -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 "$")
|
||||
|
|
Loading…
Add table
Reference in a new issue