astro/packages
Ben Holmes 3b8a744524
[MDX] Add Prism and Shiki support (#4002)
* deps: add rehype-prism, shiki, rehype-pretty-code

* wip: apply rehype plugins depending on config

* wip: cherry-pick jsx-runtime fix?

* deps: rehype-pretty-code -> shiki-twoslash, add rehype-raw

* wip: add jsx-runtime fix

* feat: get shiki working!

* deps: add @astrojs/prism, prismjs, unist-util-visit

* feat: add prism support

* example: add small syntax highlight demo to with-mdx

* deps: remove rehype-prism

* chore: remove unused async

* chore: add .test.js to all mdx tests

* test: shiki, shikiConfig, prism

* fix: remove "is:raw" from prism output

* docs: add syntax highlighting section

* chore: add changeset

* nit: "Shiki config" -> Shiki config

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Revert "wip: add jsx-runtime fix"

This reverts commit 07f4528f44.

* docs: link to integration README from example

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-21 16:43:58 -04:00
..
astro [ci] format 2022-07-21 18:47:11 +00:00
astro-prism [ci] release (#3939) 2022-07-18 21:54:25 -07:00
astro-rss [ci] release (#3939) 2022-07-18 21:54:25 -07:00
create-astro Adds back create-astro support for GitHub repos (#3971) 2022-07-19 14:24:19 +00:00
integrations [MDX] Add Prism and Shiki support (#4002) 2022-07-21 16:43:58 -04:00
markdown [ci] format 2022-07-20 20:47:28 +00:00
telemetry [ci] release (#3939) 2022-07-18 21:54:25 -07:00
webapi [ci] format 2022-07-18 19:36:57 +00:00