Skip to content

Add support for registerAlias similar to registerLanguage #2523

@wooorm

Description

@wooorm

Is your request related to a specific problem you're having?

Aliases are useful for example to support GitHub’s names, and map them to highlightjs names.

The solution you'd prefer / feature you'd like to see added...

Such as like so: https://github.com/wooorm/lowlight#lowregisteraliasname-alias, but anything that allows mapping a new label to an (existing) language name.

Any alternative solutions you considered...

There is no access to languages or aliases, so it’s not possible to do this in userland.

Additional context...

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions