Skip to content

Kirby 3.9.8

markdown

Options for the Markdown parser

Check out the full list of the available Markdown tags.

Additional tags: markdown.extra

Enables/disables the Markdown Extra parser with additional Markdown features like footnotes and tables.

return [
  'markdown' => [
    'extra' => true
  ]
];

Automatic line breaks: markdown.breaks

Enables/disables automatic line breaks in Markdown like on GitHub. Otherwise line breaks must be confirmed with three spaces at the end of the line.

Default: true

return [
  'markdown' => [
    'breaks' => false
  ]
];

Safe mode: markdown.safe

Enables/disables Parsedown's safe mode which escapes HTML code in the Markdown code and applies sanitization to scripting vectors (such as scripting link destinations) that are introduced by the Markdown syntax itself.

Default: false

return [
  'markdown' => [
    'safe' => true
  ]
];