bccd88f0eb
* 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
19 lines
277 B
Text
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>
|