aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/ANSI.hs2
-rw-r--r--test/ansi-test.ansi2
-rw-r--r--test/ansi-test.txt1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/ANSI.hs b/src/Text/Pandoc/Writers/ANSI.hs
index 8b6f4b3c4..1fbbd8629 100644
--- a/src/Text/Pandoc/Writers/ANSI.hs
+++ b/src/Text/Pandoc/Writers/ANSI.hs
@@ -296,7 +296,7 @@ inlineToANSI opts (Superscript lst) = do
Nothing -> inlineListToANSI opts lst >>= return . D.parens
inlineToANSI opts (Subscript lst) = do
- case traverse toSuperscriptInline lst of
+ case traverse toSubscriptInline lst of
Just xs -> inlineListToANSI opts xs
Nothing -> inlineListToANSI opts lst >>= return . D.parens
diff --git a/test/ansi-test.ansi b/test/ansi-test.ansi
index 5776ae262..691ed561d 100644
--- a/test/ansi-test.ansi
+++ b/test/ansi-test.ansi
@@ -111,6 +111,8 @@ More text.
small caps
+We see a log₁₀ reduction in 2⁹ seconds.
+
────────────────────
1. Here’s the note.]8;;\
diff --git a/test/ansi-test.txt b/test/ansi-test.txt
index da3ac787f..a812629a7 100644
--- a/test/ansi-test.txt
+++ b/test/ansi-test.txt
@@ -120,3 +120,4 @@ More text.
[small caps]{.smallcaps}
+We see a log~10~ reduction in 2^9^ seconds.