#2944·WeasyPrint

Respect heading hierarchy

Author: osmersCreated Sep 28, 2026Updated Sep 28, 2026

Problem

Currently, headings are all displayed in the same size. However, they are often used to distinguish between headings and sub-heading (so one bigger topic and the smaller topics contained within).

We expect:

Image

What it currently is:

Image

HTML code is this:

<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>