Superscript in pandoc epub not rendering on Kindle

35 Views Asked by At

I'm using markdown like the following to try and add superscript to my epub.

1^st^

This produces an epub with the expected html sup tag.

But when I open it on my Kindle, there is no superscript.

1st

1

There are 1 best solutions below

0
On

Using Kindle Create to produce an epub with superscript, it looks like a style is missing. I added this to pandoc's default css file (obtained via pandoc --print-default-data-file epub.css).

sup {
  font-size: 0.6666667em;
  vertical-align: super;
}

Using the modified css file (via --css) it renders correctly.

1st