Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.6k
Closed
Labels
Description
Explain the problem.
Superscript and subscript in rtf files do not end where they should. I could not find any reference tonosupersub
in the pandoc repository, which might be why it doesn't work
With minimal.rtf containing
{\rtf1\ansi\ansicpg1252\cocoartf2638\cocoascreenfonts1\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\froman\fcharset0 Times-Roman;}{\colortbl;\red255\green255\blue255;}{\*\expandedcolortbl;;}\margl1440\margr1440\vieww16800\viewh17280\viewkind0\pard\tx1080\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li180\fi440\sa120\pardirnatural\partightenfactor0\f0\fs34 \cf0 In 5\fs20 \super th\fs34 \nosupersub grade I found a bug.}
I ranpandoc minimal.rtf -o minimal.html
which produced
<p>In 5<sup>th grade I found a bug.</sup></p>
Note that the superscript does not end where it should, but continues to the end of the paragraph. In fact, for larger files it continues to the end of the file. The same happens for subscript, and other output formats (i.e. not just html).
Pandoc version?
Installed on macOS 12.4 (21F79) via home brew:
pandoc --versionpandoc 2.18Compiled with pandoc-types 1.22.2, texmath 0.12.5, skylighting 0.12.3,citeproc 0.7, ipynb 0.2, hslua 2.2.0Scripting engine: Lua 5.4User data directory: /Users/iandrus/.local/share/pandocCopyright (C) 2006-2022 John MacFarlane. Web: https://pandoc.orgThis is free software; see the source for copying conditions. There is nowarranty, not even for merchantability or fitness for a particular purpose.