mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 01:46:37 +00:00
Update configuration keys + allow extra keys for extensions
This commit is contained in:
@@ -39,14 +39,14 @@ class Configuration implements ConfigurationInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Full configuration from {@link https://commonmark.thephpleague.com/2.3/configuration}.
|
||||
* Full configuration from {@link https://commonmark.thephpleague.com/2.7/configuration}.
|
||||
*/
|
||||
private function addCommonMarkConfiguration(ArrayNodeDefinition $rootNode): void
|
||||
{
|
||||
$rootNode
|
||||
->children()
|
||||
->arrayNode('commonmark')
|
||||
->ignoreExtraKeys()
|
||||
->ignoreExtraKeys(false)
|
||||
->children()
|
||||
->arrayNode('renderer')
|
||||
->info('Array of options for rendering HTML.')
|
||||
@@ -68,6 +68,10 @@ class Configuration implements ConfigurationInterface
|
||||
->info('The maximum nesting level for blocks.')
|
||||
->defaultValue(\PHP_INT_MAX)
|
||||
->end()
|
||||
->integerNode('max_delimiters_per_line')
|
||||
->info('The maximum number of strong/emphasis delimiters per line.')
|
||||
->defaultValue(\PHP_INT_MAX)
|
||||
->end()
|
||||
->arrayNode('slug_normalizer')
|
||||
->info('Array of options for configuring how URL-safe slugs are created.')
|
||||
->children()
|
||||
|
||||
Reference in New Issue
Block a user