Skip to content

Code block parsing error while using highlight.js #8272

Closed
@CX330Blake

Description

@CX330Blake

Context

No response

Bug description

The code does not parsed from the ```, here's the photo of wrong parsed rendering.

Image

I do turn pygments off and import the external js/css

markdown_extensions:
    - pymdownx.highlight:
          use_pygments: false
          # anchor_linenums: true
          # line_spans: __span
          # pygments_lang_class: true
          # auto_title: true
    - pymdownx.inlinehilite
    - pymdownx.snippets
    - def_list
    - pymdownx.tasklist:
          custom_checkbox: true
    - mdx_truly_sane_lists
    - pymdownx.superfences:
          custom_fences:
              - name: mermaid
                class: mermaid
                format: !!python/name:pymdownx.superfences.fence_code_format
extra_css:
    - stylesheets/extra.css
    - stylesheets/dracula.css

extra_javascript:
    - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js
    - js/highlight.js

Related links

Reproduction

reproduction.zip

Steps to reproduce

mkdocs serve --dev-addr 0.0.0.0:8000 and see the website

Browser

Other

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssue must be taken upstream

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions