Skip to content

Headings

Headings from # (H1) through ###### (H6) are fully supported.

Syntax

markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

How It Renders

  • Headings use the bold font from your font configuration
  • Font size is based on page.defaultTitleFontSize, scaled down by heading depth
  • Vertical spacing is added before and after each heading
  • Headings can contain inline formatting (bold, italic, code, links)

Relevant Options

OptionEffect
page.defaultTitleFontSizeBase font size for headings
font.boldFont used for heading text
page.lineSpaceSpacing after the heading

Try It

Interactive

Try this element in the Playground — paste the syntax above and click Generate PDF.

Released under the MIT License.