@fujocoded/remark-excalidraw
v0.0.2
Published
Load excalidraw diagrams via remark
Downloads
9
Maintainers
Readme
@fujocoded/remark-excalidraw
A remark plugin that allows loading excalidraw files in markdown
TODO:
- [x] Get component to load excalidraw library
- [x] Get component to render excalidraw
- [ ] Remove need to manually import component
- [ ] Make astro client load hack configurable
Sample usage
In astro.config.js:
import remarkExcalidraw from "@fujocoded/remark-excalidraw";
export default defineConfig({
// ...
integrations: [
mdx({
remarkPlugins: [remarkExcalidraw],
}),
],
});In markdown files:
import { ExcalidrawComponent } from "@fujocoded/remark-excalidraw/component";
