p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

bug: incorrect language tag for JavaScript

Open EshaanAgg opened this issue 10 months ago • 3 comments

In many of the .mdx files containing the documentation, the JavaScript code snippets have been marked with the language tag JavaScript as follows: image This tag is incorrect and should be replaced by javascript. These incorrect language tags lead the build by Shiki to not be rendered as JS, but rather plaintext: image

A simple global search and replacing [triple backticks]JavaScript with [triple backticks]javascript should fix the same.

EshaanAgg avatar Mar 30 '24 14:03 EshaanAgg

I can take this issue up if the maintainers approve.

EshaanAgg avatar Mar 30 '24 14:03 EshaanAgg

just a quick note here that the majority of these are in src/content/contributor-docs, which have to be fixed in the p5 repo and then re-imported here with the build contributor docs script. i see a few in src/content/tutorials, which can be fixed directly in this repo.

outofambit avatar Apr 01 '24 18:04 outofambit

For those in contributor docs, we'll fix in the p5.js repo.

limzykenneth avatar Apr 04 '24 13:04 limzykenneth