aboutsummaryrefslogtreecommitdiff
path: root/Text/Pandoc/Definition.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Text/Pandoc/Definition.hs')
-rw-r--r--Text/Pandoc/Definition.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Text/Pandoc/Definition.hs b/Text/Pandoc/Definition.hs
index e97a2a53a..66c3ab878 100644
--- a/Text/Pandoc/Definition.hs
+++ b/Text/Pandoc/Definition.hs
@@ -98,6 +98,9 @@ data QuoteType = SingleQuote | DoubleQuote deriving (Show, Eq, Read, Typeable, D
-- | Link target (URL, title).
type Target = (String, String)
+-- | Type of math element (display or inline).
+data MathType = DisplayMath | InlineMath deriving (Show, Eq, Read, Typeable, Data)
+
-- | Inline elements.
data Inline
= Str String -- ^ Text (string)
@@ -116,7 +119,7 @@ data Inline
| Apostrophe -- ^ Apostrophe
| Ellipses -- ^ Ellipses
| LineBreak -- ^ Hard line break
- | Math String -- ^ TeX math (literal)
+ | Math MathType String -- ^ TeX math (literal)
| TeX String -- ^ LaTeX code (literal)
| HtmlInline String -- ^ HTML code (literal)
| Link [Inline] Target -- ^ Hyperlink: text (list of inlines), target