Skip to content

Syntax highlighting can fail if another plugin uses Prism too #79

@CodeFoodPixels

Description

@CodeFoodPixels

Opening this just in case folks have a similar issue, and to track it here too.

Prism's use of global can cause issues with eleventy-plugin-syntaxhighlight's dynamic loading if another plugin that is loaded afterwards also uses Prism. I think this is related to Prism's use of global for the language loader to access the Prism instance.

Also logged this on Prism: PrismJS/prism#3636

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions