vite-plugin-markdown-solid
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

vite-plugin-markdown-solid

npm version

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 before Solid()

// 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

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-markdown-solid

Weekly Downloads

7

Version

0.0.2

License

MIT

Unpacked Size

10.8 kB

Total Files

8

Last publish

Collaborators

  • jiakun-zhao