Markdown parser
Add your own Markdown parser
Kirby::plugin('my/markdown', [
'components' => [
'markdown' => function (Kirby $kirby, string $text = null, array $options = [], bool $inline = false) {
return YourMarkdownParser::parse($text);
}
]
]);
Parameters
Name | Type | Default | Description |
---|---|---|---|
$kirbyrequired | Kirby\Cms\App |
no default value | |
$text | string |
null
|
Text to parse |
$options | array |
[ ]
|
Markdown options |
Return type
string