Text Rendering Tests

This EPUB tests text rendering edge cases.

Test Plan:

pre element: intrinsic line breaks preserved

pre element: leading/trailing blank lines

pre with inline code element

pre: Intrinsic Line Breaks

The block below is a single <pre> element. Each source line must appear on its own line:

Line one
Line two
Line three

Normal paragraph after the pre block. Text resumes as a regular wrapped paragraph.

pre: Blank Lines

The pre block below contains intentional blank lines between code lines:

First line

Third line (blank line above)

Fifth line (blank line above)

Each blank line in the source should produce an empty line in the output.

pre with Nested code Element

Common EPUB pattern: <pre><code>...</code></pre>. Line breaks must still be preserved:

function greet(name) {
    return "Hello, " + name;
}

greet("World");

Normal paragraph after pre/code block.