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.

Line Breaks ​

To create a hard line break without starting a new paragraph (which avoids the page.lineSpace gap), you can use the HTML <br> tag.

markdown
This is line one.<br>
This is line two directly below it.

Note: Standard Markdown double-spaces at the end of a line are also supported by the underlying parser and will be converted to line breaks automatically.

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
paragraph.bottomSpacingPrimary space below the paragraph
spacing.afterParagraphFallback space below paragraph
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.