Skip to content

Add language via prism definition #4

@qiushiyan

Description

@qiushiyan

Hi, thanks for creating the library.

I want to register a custom language. What I have is a prism language definition as in https://prismjs.com/extending.html, I am not sure how to convert it to the languageMap object mentioned in the docs.

It seems vite is automatically generating the grammar definition from prism definition in the build process. I think it's better to had a option to add a language that simply accepts the prism definition format at run time.

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