mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
add case for "variable" class
This commit is contained in:
committed by
John MacFarlane
parent
3e54d3a45d
commit
e9bd6285e3
@@ -446,6 +446,9 @@ inlineToTexinfo (Subscript lst) = do
|
||||
inlineToTexinfo (SmallCaps lst) =
|
||||
inCmd "sc" <$> inlineListToTexinfo lst
|
||||
|
||||
inlineToTexinfo (Code (_, cls , _) str) | T.pack "variable" `elem` cls =
|
||||
return $ literal $ "@code{@var{" <> stringToTexinfo str <> "}}"
|
||||
|
||||
inlineToTexinfo (Code _ str) =
|
||||
return $ literal $ "@code{" <> stringToTexinfo str <> "}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user