Skip to content

Latex formular cannot render after introducing mkdocs-mermaid2-plugin (issue with <!DOCTYPE doctype>) #116

@onford

Description

@onford

I add following config to my mkdocs.yml:

- pymdownx.superfences:
    # make exceptions to highlighting of code:
    custom_fences:
      - name: mermaid
        class: mermaid
        format: !!python/name:mermaid2.fence_mermaid_custom

Then my mermaid figure renders normally, while other latex formulars in the same page cannot render. I use extra_javascript for rendering latex formulars:

extra_javascript:
  - https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js

How can I solve this problem? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    environmentEnviropnment issue (libraries, etc.)keep in mindKeep that issue in mind, coul be useful later.resolvedThe question was resolveduseful tipContains a useful tip to solve the issuewontfixThe code will not be changed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions