From 1a47b954dc707a7f4e98c538bd7afa75ea614a6c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 7 Sep 2026 09:35:12 -0700 Subject: [PATCH] toSubscript: handle minus sign. --- src/Text/Pandoc/Writers/Shared.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text/Pandoc/Writers/Shared.hs b/src/Text/Pandoc/Writers/Shared.hs index 42611abfa..ba2fe6984 100644 --- a/src/Text/Pandoc/Writers/Shared.hs +++ b/src/Text/Pandoc/Writers/Shared.hs @@ -679,6 +679,7 @@ toSubscript '-' = Just '\x208B' toSubscript '=' = Just '\x208C' toSubscript '(' = Just '\x208D' toSubscript ')' = Just '\x208E' +toSubscript '\x2212' = Just '\x208B' -- unicode minus toSubscript c | c >= '0' && c <= '9' = Just $ chr (0x2080 + (ord c - 48))