I'm using Mkdocs-Material, specifically with the MathJax functionality enabled for properly typesetting mathematics.
In the generated HTML site this works fine as the JS gets executed and renders the maths properly by the time you see it. However, it seems like Playwright is exporting to PDF before it's had time to finish executing, as the rendered PDF just shows the original source syntax.
I actually found the same thing hapened with Mermaid diagrams too.
Is there a way to force an extra delay before the page gets exported, to give JS like this chance to finish executing?
Thanks!
I'm using Mkdocs-Material, specifically with the MathJax functionality enabled for properly typesetting mathematics.
In the generated HTML site this works fine as the JS gets executed and renders the maths properly by the time you see it. However, it seems like Playwright is exporting to PDF before it's had time to finish executing, as the rendered PDF just shows the original source syntax.
I actually found the same thing hapened with Mermaid diagrams too.
Is there a way to force an extra delay before the page gets exported, to give JS like this chance to finish executing?
Thanks!