Skip to content

Headings

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

Syntax

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

Rendering Behavior

  • Heading weight is controlled by heading.bold.
  • heading.bold defaults to true.
  • Size fallback chain: heading.hN -> page.defaultTitleFontSize.
  • Color fallback chain: heading.hNColor -> heading.color -> #000000.

Relevant Options

OptionEffect
heading.boldToggles bold vs regular heading font
heading.h1 ... heading.h6Absolute font size per heading level
heading.colorGlobal heading color
heading.hNColorPer-level heading color override
heading.bottomSpacingSpace below headings
spacing.afterHeadingFallback spacing below headings

Example

ts
heading: {
  bold: false,
  h1: 28,
  h2: 22,
  color: '#1F2937',
  h1Color: '#7C2D12',
}

Try It

Interactive

Try this element in the Playground.

Released under the MIT License.