Skip to content

Horizontal Rules ​

Horizontal rules render as a line spanning the content width, serving as visual separators.

Syntax ​

Any of these produce a horizontal rule:

markdown
---
***
___

How It Renders ​

  • Draws a horizontal line across the full page.maxContentWidth
  • Adds vertical spacing above and below the line
  • Useful for separating sections or adding visual breaks

Relevant Options ​

OptionEffect
page.maxContentWidthWidth of the horizontal line
spacing.afterHRSpacing added below the horizontal rule

Try It ​

Interactive

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

Released under the MIT License.