mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
6fe1b0279f
* [ci] yarn format * Added shiki to markdown-remark * Upgraded astro shiki * Added minimal example * Changed defaults to match <Code /> * Replace `shiki` with `astro` classes * Added documentation * Updated Astro code to use new `codeToHtml` * Added changesets * Added basic test * Updated tests a bit Co-authored-by: JuanM04 <JuanM04@users.noreply.github.com>
12 lines
490 B
Markdown
12 lines
490 B
Markdown
# Astro Example: Markdown with Shiki
|
|
|
|
```
|
|
npm init astro -- --template with-markdown-shiki
|
|
```
|
|
|
|
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-markdown)
|
|
|
|
This example showcases Astro's [built-in Markdown support](../../docs/markdown.md).
|
|
|
|
- `src/pages/index.astro` uses Astro's `<Markdown>` component.
|
|
- `src/pages/other.md` is a treated as a page entrypoint and uses a `layout`.
|