Skip to content

A combination of useful "builder apis" for vite-plugin-md

Notifications You must be signed in to change notification settings

yankeeinlondon/md-powerpack

Repository files navigation

md-powerpack

An aggregation of useful "builder APIs" which can be used with the vite-plugin-md pipeline

Included Builders

Example Configuration

To use the core vite-plugin-md along with the powerpack's builders you would create a vite.config.ts / vite.config.js file similar to the following:

import { defineConfig } from "vite";
import Markdown from "vite-config-md";
import Vue from "@vitejs/vue";
import { code, meta, link } from "md-powerpack";

export default defineConfig({
    plugins: [
        Vue({
            include: [/\.vue$/, /\.md$/],
        }),
        Markdown({
            builders: [code(), meta(), link()]
        })
    ]
})

Every builder API will provide good defaults out of the box but you may also add configuration (all strongly typed) if you want to modify behavior.

About

A combination of useful "builder apis" for vite-plugin-md

Resources

Stars

Watchers

Forks

Packages

No packages published