0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/with-markdown-shiki
github-actions[bot] b1afce896a
[ci] release (next) (#2565)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 10:41:47 -05:00
..
public Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
src Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
.gitignore Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
.npmrc Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
.stackblitzrc Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
astro.config.mjs feat: Added the ability to add custom themes/languages to Shiki (#2518) 2022-02-07 08:31:02 -08:00
package.json [ci] release (next) (#2565) 2022-02-11 10:41:47 -05:00
README.md Remove docs from monorepo (#2517) 2022-02-07 13:39:53 -05:00
sandbox.config.json Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00
tsconfig.json Add Shiki as an alternative to Prism (#2497) 2022-01-31 16:14:07 -06:00

Astro Example: Markdown with Shiki

npm init astro -- --template with-markdown-shiki

Open in StackBlitz

This example showcases Astro's built-in Markdown support.

  • src/pages/index.astro uses Astro's <Markdown> component.
  • src/pages/other.md is a treated as a page entrypoint and uses a layout.