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>
399 B
399 B
astro |
---|
minor |
Implement RFC #0017
- New Markdown API
- New
Astro.glob()
API - BREAKING CHANGE: Removed
Astro.fetchContent()
(replaced byAstro.glob()
)
// v0.25
- let allPosts = Astro.fetchContent('./posts/*.md');
// v0.26+
+ let allPosts = await Astro.glob('./posts/*.md');