Skip to content

Kirby 3.7.2.1

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 applies sanitisation to scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself.

Default: false

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