It is actually possible to include and configure commonmark extensions when using the markdown features of Twig Extra Bundle.
The documentation at https://twig.symfony.com/doc/3.x/filters/markdown_to_html.html does not explain how, so let me show it here.
We need to define a tagged service for the extension and we need to specify the configuration.