Skip to content

Possible to wait longer for JS to execute? #81

Description

@jtc42

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions