astro/packages/integrations
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
..
cloudflare [ci] format 2022-07-19 20:11:53 +00:00
deno Adds support for Astro.clientAddress (#3973) 2022-07-19 16:10:15 -04:00
image [READMEs] removed "experimental" from astro add instructions (#4004) 2022-07-21 14:33:59 -03:00
lit [ci] format 2022-07-21 16:28:25 +00:00
mdx [MDX] Add Prism and Shiki support (#4002) 2022-07-21 16:43:58 -04:00
netlify Adds support for Astro.clientAddress (#3973) 2022-07-19 16:10:15 -04:00
node [ci] release (#3894) 2022-07-12 09:08:15 -04:00
partytown [READMEs] removed "experimental" from astro add instructions (#4004) 2022-07-21 14:33:59 -03:00
preact [ci] release (#3939) 2022-07-18 21:54:25 -07:00
prefetch [READMEs] removed "experimental" from astro add instructions (#4004) 2022-07-21 14:33:59 -03:00
react [ci] release (#3939) 2022-07-18 21:54:25 -07:00
sitemap [READMEs] removed "experimental" from astro add instructions (#4004) 2022-07-21 14:33:59 -03:00
solid [ci] release (#3939) 2022-07-18 21:54:25 -07:00
svelte Properly support and type optional props in Svelte components (#3993) 2022-07-20 17:32:46 -04:00
tailwind [READMEs] removed "experimental" from astro add instructions (#4004) 2022-07-21 14:33:59 -03:00
turbolinks [ci] release (#3850) 2022-07-08 20:54:39 -04:00
vercel Adds support for Astro.clientAddress (#3973) 2022-07-19 16:10:15 -04:00
vue Migrate to Vite 3 ️ (#3570) 2022-07-18 22:19:23 -07:00