astro/packages/markdown/component/test/fixtures/astro-markdown/src/pages/external.astro
Matthew Phillips bccd88f0eb
Move the Markdown component to its own package (#3986)
* Move the Markdown component to its own package

* Update the examples

* Updated lockfile

* Use is:raw

* Add a main field

* Update the formatting of the readme

* Rename to @astrojs/markdown-component
2022-07-20 16:45:05 -04:00

19 lines
277 B
Text

---
import Markdown from '@astrojs/markdown-component';
const outer = `# Outer`;
const inner = `## Inner`;
---
<style>
#root { color: green; }
</style>
<div id="root">
<Markdown content={outer} />
<Markdown>
# Nested
<Markdown content={inner} />
</Markdown>
</div>