Skip to content
This repository has been 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

Open
jhsware opened this issue Sep 7, 2018 · 0 comments

Comments

@jhsware
Copy link

jhsware commented Sep 7, 2018

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'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant