git.iko.soy/typeable/pandoc
on master help sign in
TeXMath reader: handle \textit, \textbf, etc.
commit11672c49873694ac5bce02ed836ce1d5bfa5b47f authorJohn MacFarlane <jgm@berkeley.edu> dateTue 19 Oct 2010, 13:22 (16 years ago) parent90bae29
1 file changed+5−1
src/Text/Pandoc/Readers/TeXMath.hs+5−1
src/Text/Pandoc/Readers/TeXMath.hs+5−1
@@ -89,6 +89,10 @@ expToInlines (ESubsup x y z) = do
8989expToInlines (EDown x y) = expToInlines (ESub x y)
9090expToInlines (EUp x y) = expToInlines (ESuper x y)
9191expToInlines (EDownup x y z) = expToInlines (ESubsup x y z)
92−expToInlines (EText _ x) = Just [Emph [Str x]]
92+expToInlines (EText "normal" x) = Just [Str x]
93+expToInlines (EText "bold" x) = Just [Strong [Str x]]
94+expToInlines (EText "monospace" x) = Just [Code x]
95+expToInlines (EText "italic" x) = Just [Emph [Str x]]
96+expToInlines (EText _ x) = Just [Str x]
9397expToInlines _ = Nothing
9498