mirror of
https://github.com/danbulant/mdsvexrs
synced 2026-05-19 04:08:47 +00:00
14 lines
No EOL
322 B
JavaScript
14 lines
No EOL
322 B
JavaScript
import { render } from "mdsvexrs-wasm"
|
|
|
|
export function mdsvexrs(options) {
|
|
return {
|
|
name: 'mdsvexrs',
|
|
markup: ({ content, filename }) => {
|
|
if(!filename || !filename.endsWith('.md')) return
|
|
|
|
return {
|
|
code: render(content, options)
|
|
}
|
|
}
|
|
}
|
|
} |