vite-plugin-markdown-solid
v0.0.2
Published
Compile Markdown to Solid component.
Downloads
14
Readme
vite-plugin-markdown-solid
Compile Markdown to SolidJS component.
[WIP]
Install
Install
pnpm i -D vite-plugin-markdown-solid
Add it to vite.config.ts
[!NOTE]
Markdown()
should be placed beforeSolid()
// vite.config.ts
import { defineConfig } from 'vite'
import markdown from 'vite-plugin-markdown-solid'
import solid from 'vite-plugin-solid'
export default defineConfig({
plugins: [
markdown(),
solid({ extensions: ['.md'] }),
],
})
Options
See the type definitions.
Playground
See the playground.
TypeScript Shim
declare module '*.md' {
import type { Component } from 'solid-js'
const Component: Component
export default Component
}
License
MIT License © 2024-PRESENT Jiakun Zhao