MinecraftForge / Documentation

Read the docs MinecraftForge documentation
MIT License
464 stars 193 forks source link

Highlight.js does not support JSON comments #430

Closed ChampionAsh5357 closed 2 years ago

ChampionAsh5357 commented 2 years ago

Although GitHub codeblocks support to use of different JSON configurations (json5, jsonc), Highlight.js does not support commented json. Instead, it actively resolves the script between either coffeescript (causing the highlighting errors) and php (which surprisingly works without any issue).

To support JSON with comments, it was recommended to use the JS highlighter or to create our own distribution of highlight.js.

sciwhiz12 commented 2 years ago

Addressed by #433.