diff options
author | 2021-06-02 10:53:33 -0500 | |
---|---|---|
committer | 2021-06-02 11:53:33 -0400 | |
commit | ffb6380c3fde97e67c94a374d177b7fb4ca809c5 (patch) | |
tree | 55a4d1bd9d77ec0100263f8ed272037f39af63a0 /examples/remote-markdown/src | |
parent | d2330a58256c212288bbba04ca41f1d65d37e711 (diff) | |
download | astro-ffb6380c3fde97e67c94a374d177b7fb4ca809c5.tar.gz astro-ffb6380c3fde97e67c94a374d177b7fb4ca809c5.tar.zst astro-ffb6380c3fde97e67c94a374d177b7fb4ca809c5.zip |
Dynamic Markdown content (#273)
* wip: serverside render dynamic Markdown content
* docs: update Markdown.astro comments
* Use existing markdown infrastructure to render external MD
* Update Markdown docs
* Add a changeset
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Diffstat (limited to 'examples/remote-markdown/src')
-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} /> |