chore: add mdc example
This commit is contained in:
parent
5ec4947a82
commit
2d99baee53
3 changed files with 18 additions and 0 deletions
5
examples/with-markdown/astro.config.mjs
Normal file
5
examples/with-markdown/astro.config.mjs
Normal file
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
markdownOptions: {
|
||||
components: './src/components/index.tsx'
|
||||
}
|
||||
}
|
1
examples/with-markdown/src/components/index.tsx
Normal file
1
examples/with-markdown/src/components/index.tsx
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as PreactCounter } from './PreactCounter.tsx';
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: Some Markdown Page
|
||||
layout: ../layouts/main.astro
|
||||
---
|
||||
|
||||
# Paragraph
|
||||
|
||||
text here.
|
||||
|
||||
<PreactCounter client:visible />
|
||||
|
||||
Hello world!
|
Loading…
Reference in a new issue