Skip to content

Paragraphs

Plain text blocks separated by blank lines are rendered as paragraphs.

Syntax

markdown
This is the first paragraph. It can span multiple 
lines in the source and will be reflowed to fit 
the page width.

This is the second paragraph.

How It Renders

  • Uses page.defaultFontSize and font.regular
  • Text is word-wrapped to fit within page.maxContentWidth
  • Paragraphs can contain inline elements: bold, italic, code, and links
  • Vertical spacing between paragraphs is controlled by page.lineSpace

Relevant Options

OptionEffect
page.defaultFontSizeFont size for paragraph text
page.maxContentWidthMaximum width before text wraps
page.lineSpaceSpacing between paragraphs
page.defaultLineHeightFactorLine height within a paragraph
font.regularFont used for regular text
content.textAlignmentText alignment (left, right, center, justify)

Try It

Interactive

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

Released under the MIT License.