processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
19 stars 89 forks source link

Update some code blocks #407

Closed davepagurek closed 5 months ago

davepagurek commented 5 months ago

Fixes https://github.com/processing/p5.js-website/issues/405.

What I've done so far:

davepagurek commented 5 months ago

@Qianqianye there are some technical challenges to getting reference items to display as highlighted code blocks since, rather than using the astro mdx format everything else uses, it stores raw html in a string in its source files. For now I've opted for a CSS-only solution that at least renders them as blocks.

I think this is probably good enough for now, let me know what you think though!

Before:

image

After:

image