0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/mdx/test/fixtures
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
..
mdx-component/src
mdx-custom-frontmatter-name/src/pages [MDX] Support YAML frontmatter (#3995) 2022-07-20 21:34:21 -04:00
mdx-frontmatter/src/pages [MDX] Support YAML frontmatter (#3995) 2022-07-20 21:34:21 -04:00
mdx-page/src/pages
mdx-remark-plugins/src/pages [MDX] Support remark and rehype plugins, with defaults (#3977) 2022-07-20 14:14:23 -04:00
mdx-syntax-hightlighting/src/pages [MDX] Add Prism and Shiki support (#4002) 2022-07-21 16:43:58 -04:00
mdx-url-export/src/pages [MDX] Include url in glob result (#3981) 2022-07-20 10:56:32 -04:00