Skip to content

[Request] Add support for JSON5 as extension of current JSON support #4260

Closed
@kshetline

Description

@kshetline

I'm submitting this issue as a small enhancement request, hoping it doesn't qualify as a request for a whole new language.

I'm using highlight.js to enhance Markdown syntax highlighting within code fences, where users would be expected to annotate their code fences like this:

Image

...and not tag them as javascript instead, just to get the content parsed correctly.

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

Updates to json.js to cover JSON5 syntax, for which I have already submitted a PR.

Any alternative solutions you considered...

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions