Skip to main content
Version: 1.2.x

Thematic Breaks

Description

Thematic breaks, also known as horizontal rules, are a handy element in Markdown for visually dividing sections of text in your documents. A thematic break is represented by three or more consecutive hyphens (---), asterisks (***), or underscores (___). Regardless of the symbol used, thematic breaks produce the same visual output.

Configuration Syntax

Control the rendering of thematic breaks in ParsedownExtended with the setSetting method:

$ParsedownExtended->setSetting('thematic_breaks', (boolean) $value);

This setting accepts a boolean value to enable or disable thematic breaks globally.

Examples

Enable Thematic Breaks

To enable thematic breaks with default settings:

$ParsedownExtended->setSetting('thematic_breaks', true);

Disable Thematic Breaks

To completely disable thematic breaks:

$ParsedownExtended->setSetting('thematic_breaks', false);