mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
4299ab303b
* Implement new markdown plugin with deferred markdown rendering * feat: switch from `getContent()` fn to `<Content />` API * update types * Update packages/astro/src/@types/astro.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * update types * Create forty-coins-attend.md Co-authored-by: Nate Moore <nate@skypack.dev> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
16 lines
399 B
Markdown
16 lines
399 B
Markdown
---
|
|
"astro": minor
|
|
---
|
|
|
|
Implement RFC [#0017](https://github.com/withastro/rfcs/blob/main/proposals/0017-markdown-content-redesign.md)
|
|
|
|
- New Markdown API
|
|
- New `Astro.glob()` API
|
|
- **BREAKING CHANGE:** Removed `Astro.fetchContent()` (replaced by `Astro.glob()`)
|
|
|
|
```diff
|
|
// v0.25
|
|
- let allPosts = Astro.fetchContent('./posts/*.md');
|
|
// v0.26+
|
|
+ let allPosts = await Astro.glob('./posts/*.md');
|
|
```
|