You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 eithercoffeescript
(causing the highlighting errors) andphp
(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.
The text was updated successfully, but these errors were encountered: