Skip to content

Don't silently ignore tokens from themes without a name #244

@danbulant

Description

@danbulant

If we pass in a JSON theme and want to highlight tokens inline (the thing{:.tok} syntax), this requires a name even if just one theme is passed in. There's no warning or error about name not being present, and everything else works just fine.

Relevant code: https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/core/src/index.ts#L309-L320

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