diff options
Diffstat (limited to 'examples/remote-markdown')
-rw-r--r-- | examples/remote-markdown/src/pages/test.astro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/remote-markdown/src/pages/test.astro b/examples/remote-markdown/src/pages/test.astro new file mode 100644 index 000000000..d0a050f35 --- /dev/null +++ b/examples/remote-markdown/src/pages/test.astro @@ -0,0 +1,6 @@ +--- +import Markdown from 'astro/components/Markdown.astro'; +const content = await fetch('https://raw.githubusercontent.com/snowpackjs/snowpack/main/README.md').then(res => res.text()); +--- + +<Markdown content={content} /> |