Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Syntax highlighting fails for type JavaScript (CamelCase) even though it works on Github #433

@jhsware

Description

@jhsware

When identifying a code block as JavaScript with uppercase 'J' and 'S', the highlighting doesn't kick in as expected. The highlighting works fine on Github, which means it is easy to miss until after a release.

The work around is to change the language identifier to javascript (lowecase). Still, it is reasonable to expect it to be compatible with Github given that NPM supports Github flavoured markdown.

Here is an example (difference is apparent in source):

CamelCase WON'T be highlighted on NPM:

import 'marky-markdown'

Lowercase WILL be highlighted on NPM:

import 'marky-markdown'

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