summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Typst/Math.hs2
-rw-r--r--test/typst-reader.native4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Typst/Math.hs b/src/Text/Pandoc/Readers/Typst/Math.hs
index e1c584675..fdd6771a8 100644
--- a/src/Text/Pandoc/Readers/Typst/Math.hs
+++ b/src/Text/Pandoc/Readers/Typst/Math.hs
@@ -175,7 +175,7 @@ handleMath tok =
<$> (getField "body" fields >>= pMathGrouped)
<*> pure (ESymbol TUnder "_")
Elt "math.overline" _ fields ->
- EUnder False
+ EOver False
<$> (getField "body" fields >>= pMathGrouped)
<*> pure (ESymbol TOver "\175")
Elt "math.underbrace" _ fields -> do
diff --git a/test/typst-reader.native b/test/typst-reader.native
index 740cc65ab..0e00bc1ab 100644
--- a/test/typst-reader.native
+++ b/test/typst-reader.native
@@ -1674,7 +1674,7 @@ Pandoc
, Space
, Str "or"
, Space
- , Math InlineMath "\\underset{\175}{A}"
+ , Math InlineMath "\\overline{A}"
, Space
, Str "with"
, Space
@@ -2042,7 +2042,7 @@ Pandoc
, Space
, Str "produces"
, Space
- , Math InlineMath "\\underset{\175}{x + y}"
+ , Math InlineMath "\\overline{x + y}"
, Str ","
, Space
, Str "and"