Limit textarea field heading tag level
This commit is contained in:
parent
d272a8752b
commit
ae2282a76b
15 changed files with 75 additions and 46 deletions
|
@ -4,7 +4,8 @@ return [
|
|||
// Kirby configuration settings
|
||||
'home' => 'accueil',
|
||||
'panel' => [
|
||||
'language' => 'fr'
|
||||
'language' => 'fr',
|
||||
'css' => 'assets/css/panel.min.css'
|
||||
],
|
||||
// Meta Knight plugin options
|
||||
'diesdasdigital.meta-knight' => [
|
||||
|
@ -43,6 +44,10 @@ return [
|
|||
'twitter_image' => $newPage->twitter_image()->value()
|
||||
]);
|
||||
}
|
||||
},
|
||||
'kirbytext:after' => function (string $text) {
|
||||
// Replace any HTML <h1> or <h2> tag by <h3> tag after Markdown parsing
|
||||
return preg_replace(['/<h1>|<h2>/', '/<\/h1>|<\/h2>/'], ['<h3>', '</h3>'], $text);
|
||||
}
|
||||
],
|
||||
// Thumbnails and srcsets presets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue