aboutsummaryrefslogtreecommitdiff
path: root/test/writer.texinfo
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-06-25 03:14:04 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-06-25 03:14:04 +0300
commitebf4ed89440d459684e2becad06a34ac3cdba7d5 (patch)
tree25e2d3d0213067593fba2e131cae66abcc124b76 /test/writer.texinfo
parentdda38823482c1c803771c88d93e15e4fa7a65ece (diff)
downloadpandoc-ebf4ed89440d459684e2becad06a34ac3cdba7d5.tar.gz
Texinfo writer: use @sup and @sub instead of custom macros
Fixes #4728
Diffstat (limited to 'test/writer.texinfo')
-rw-r--r--test/writer.texinfo24
1 files changed, 2 insertions, 22 deletions
diff --git a/test/writer.texinfo b/test/writer.texinfo
index f5727d96d..ebc0447ee 100644
--- a/test/writer.texinfo
+++ b/test/writer.texinfo
@@ -5,24 +5,6 @@
~~\text\~~
@end macro
-@macro textsubscript{text}
-@iftex
-@textsubscript{\text\}
-@end iftex
-@ifnottex
-_@{\text\@}
-@end ifnottex
-@end macro
-
-@macro textsuperscript{text}
-@iftex
-@textsuperscript{\text\}
-@end iftex
-@ifnottex
-^@{\text\@}
-@end ifnottex
-@end macro
-
@ifnottex
@paragraphindent 0
@end ifnottex
@@ -738,11 +720,9 @@ This is code: @code{>}, @code{$}, @code{\}, @code{\$}, @code{<html>}.
@textstrikeout{This is @emph{strikeout}.}
-Superscripts: a@textsuperscript{bc}d a@textsuperscript{@emph{hello}}
-a@textsuperscript{hello@ there}.
+Superscripts: a@sup{bc}d a@sup{@emph{hello}} a@sup{hello@ there}.
-Subscripts: H@textsubscript{2}O, H@textsubscript{23}O,
-H@textsubscript{many@ of@ them}O.
+Subscripts: H@sub{2}O, H@sub{23}O, H@sub{many@ of@ them}O.
These should not be superscripts or subscripts, because of the unescaped
spaces: a^b c^d, a~b c~d.