summaryrefslogtreecommitdiff
path: root/docs/markdown.md
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-06-02 11:35:28 -0500
committerGravatar GitHub <noreply@github.com> 2021-06-02 11:35:28 -0500
commit94eac19888398e91d436cf31867ba9d3397e1d1a (patch)
treefb321d70f2a1a09ca35b5507bbf6b7f240ebc5bc /docs/markdown.md
parent4dd18deab959adaf3f1f31b4e47349a657d273f0 (diff)
downloadastro-94eac19888398e91d436cf31867ba9d3397e1d1a.tar.gz
astro-94eac19888398e91d436cf31867ba9d3397e1d1a.tar.zst
astro-94eac19888398e91d436cf31867ba9d3397e1d1a.zip
Pre-release refactors (#289)
* refactor: expose `astro/components` as component entrypoint * refactor: remove `extensions` from all configs * test: fix snowpack tests * docs: update config doc
Diffstat (limited to 'docs/markdown.md')
-rw-r--r--docs/markdown.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/markdown.md b/docs/markdown.md
index c20124096..822efb1ef 100644
--- a/docs/markdown.md
+++ b/docs/markdown.md
@@ -58,7 +58,7 @@ Astro exposes a special `Markdown` component for `.astro` files which enables ma
---
// For now, this import _must_ be named "Markdown" and _must not_ be wrapped with a custom component
// We're working on easing these restrictions!
-import Markdown from 'astro/components/Markdown.astro';
+import { Markdown } from 'astro/components';
import Layout from '../layouts/main.astro';
import MyFancyCodePreview from '../components/MyFancyCodePreview.tsx';
@@ -101,7 +101,7 @@ If you have Markdown in a remote source, you may pass it directly to the Markdow
```jsx
---
-import Markdown from 'astro/components/Markdown.astro';
+import { Markdown } from 'astro/components';
const content = await fetch('https://raw.githubusercontent.com/snowpackjs/snowpack/main/README.md').then(res => res.text());
---
@@ -115,7 +115,7 @@ Some times you might want to combine dynamic markdown with static markdown. You
```jsx
---
-import Markdown from 'astro/components/Markdown.astro';
+import { Markdown } from 'astro/components';
const content = await fetch('https://raw.githubusercontent.com/snowpackjs/snowpack/main/README.md').then(res => res.text());
---