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
21 lines
292 B
Text
21 lines
292 B
Text
---
|
|
import Markdown from '@astrojs/markdown-component';
|
|
import Layout from '../layouts/content.astro';
|
|
|
|
---
|
|
<style>
|
|
#root {
|
|
color: green;
|
|
}
|
|
</style>
|
|
<Layout>
|
|
<div id="root">
|
|
<Markdown>
|
|
## Interesting Topic
|
|
|
|
```js
|
|
const thing = () => {};
|
|
```
|
|
</Markdown>
|
|
</div>
|
|
</Layout>
|