diff --git a/scripts/generate_test_epub.py b/scripts/generate_test_epub.py index 99868cf6..9b714512 100644 --- a/scripts/generate_test_epub.py +++ b/scripts/generate_test_epub.py @@ -1014,6 +1014,7 @@ def main():
  • pre element: intrinsic line breaks preserved
  • pre element: leading/trailing blank lines
  • pre with inline code element
  • +
  • superscript and subscript rendering
  • """, ), @@ -1061,6 +1062,42 @@ Fifth line (blank line above) greet("World");

    Normal paragraph after pre/code block.

    +""", + ), + [], + ), + ( + "4. Superscript and Subscript", + make_chapter( + "Superscript and Subscript", + """ +

    Basic superscript

    +

    E = mc2 is Einstein's mass-energy equivalence.

    +

    The area of a circle is πr2.

    +

    210 = 1024.

    +

    xn + yn = zn

    + +

    Basic subscript

    +

    Water is H2O.

    +

    Carbon dioxide is CO2.

    +

    The sequence a1, a2, a3, ..., an.

    +

    Glucose: C6H12O6.

    + +

    Mixed sup and sub

    +

    The pH of water is 7, meaning [H3O+] = 10-7 mol/L.

    +

    Footnote reference1 and another2 in the same sentence.

    + +

    Ordinals

    +

    On the 1st of January, the 2nd quarter begins on the 3rd month.

    + +

    Nested with bold and italic

    +

    Speed of light: c = 2.998 × 108 m/s.

    +

    Avogadro: 6.022 × 1023 mol-1.

    +

    Bold superscript: x2 and italic subscript: Hn.

    + +

    Long runs

    +

    This wordhas a rather long superscript attached to it continuing normally.

    +

    This wordhas a rather long subscript attached to it continuing normally.

    """, ), [], diff --git a/test/epubs/test_jpeg_images.epub b/test/epubs/test_jpeg_images.epub index a99251f0..c2142b7c 100644 Binary files a/test/epubs/test_jpeg_images.epub and b/test/epubs/test_jpeg_images.epub differ