Playground
Try it with your Markdown
Edit the Markdown and the block updates as you type. Copy the code when you're happy with it.
Example
- Notes
- AI prompt
- README
- Release checklist
- Tables and tasks
defaultMode- preview
- markdown
Theme
- Default
- Violet
Result
Project notes
Keep notes in Markdown so they can be read here and copied into a changelog, an issue, or a prompt.
Before the tag
- Run the tests.
- Bump the version in
package.json. - Write what changed for users.
npm install astro-markdown-block
Code
---
import { MarkdownBlock } from 'astro-markdown-block'
import 'astro-markdown-block/styles.css'
import source from './notes.md?raw'
---
<MarkdownBlock
client:visible
title="Notes"
source={source}
/>Save your Markdown as notes.md next to the page. In a React app, drop client:visible and pass the string as source.