From 9f58a552800b52def52ce2a69c5e7eb8269e4d5b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 5 Jan 2024 22:09:36 -0800 Subject: Typst reader: fix handling of `\overline`. Due to a typo, it was being incorrectly rendered as an `\underset`. Closes #9294. --- src/Text/Pandoc/Readers/Typst/Math.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3