Mermaid charts don’t render on published pages

Yep. Plugin seems not be a best solution.
So I change to use by theme component: