From 11672c49873694ac5bce02ed836ce1d5bfa5b47f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 19 Oct 2010 13:22:50 -0700 Subject: TeXMath reader: handle \textit, \textbf, etc. --- src/Text/Pandoc/Readers/TeXMath.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers/TeXMath.hs') diff --git a/src/Text/Pandoc/Readers/TeXMath.hs b/src/Text/Pandoc/Readers/TeXMath.hs index b0c6e86d4..f293299ec 100644 --- a/src/Text/Pandoc/Readers/TeXMath.hs +++ b/src/Text/Pandoc/Readers/TeXMath.hs @@ -89,6 +89,10 @@ expToInlines (ESubsup x y z) = do expToInlines (EDown x y) = expToInlines (ESub x y) expToInlines (EUp x y) = expToInlines (ESuper x y) expToInlines (EDownup x y z) = expToInlines (ESubsup x y z) -expToInlines (EText _ x) = Just [Emph [Str x]] +expToInlines (EText "normal" x) = Just [Str x] +expToInlines (EText "bold" x) = Just [Strong [Str x]] +expToInlines (EText "monospace" x) = Just [Code x] +expToInlines (EText "italic" x) = Just [Emph [Str x]] +expToInlines (EText _ x) = Just [Str x] expToInlines _ = Nothing -- cgit v1.2.3