BenjaminHoegh / ParsedownExtended

ParsedownExtended is an extention for Parsedown, offering additional features and functionalities.
https://benjaminhoegh.github.io/ParsedownExtended
MIT License
38 stars 7 forks source link

Setting Alert Types is wrong in the docs #76

Open Hi-ImKyle opened 2 hours ago

Hi-ImKyle commented 2 hours ago

Bug Description

The docs say the way to set the alert types is to do the following

$ParsedownExtended->config()->set('alerts', [
    'types' => ['note', 'warning', 'custom-type']
]);

That doesn't work, but the following does

$ParsedownExtended->config()->set('alerts.types', ['note', 'warning', 'custom-type']);

PHP Version

8.2.12

Parsedown Version

1.7.4

Parsedown Extra Version

No response

Code of Conduct

Hi-ImKyle commented 1 hour ago

Suppose I should specify the docs page that is wrong is here. https://benjaminhoegh.github.io/ParsedownExtended/Configuration/Alerts#customize-alert-types