Adding class to Kirbytext lists

Hi, I need to add “class: list” to all my list tags parsed in KirbyText across the website.
What’s the best way to go about?
Any help would be much appreciated.

You can use a kirbytext:after hook for that: https://getkirby.com/docs/reference/plugins/hooks/kirbytext-after