Skip to content

Missing markdown-plugin (markdownItUses api) in README.md #1

@xxholly32

Description

@xxholly32

This is a nice feature, but the documentation is really missing

i suggest

// vite.config.js
import Markdown from 'vite-plugin-md'

export default {
  plugins: [
    Markdown({
      // default options passed to markdown-it
      // see: https://markdown-it.github.io/markdown-it/
      markdownItOptions: {
        html: true,
        linkify: true,
        typographer: true,
      }
    })
  ],
}

=>

import Markdown from 'vite-plugin-md'
import emoji from "markdown-it-emoji";

export default {
  plugins: [
    Markdown({
      // default options passed to markdown-it
      // see: https://markdown-it.github.io/markdown-it/
      markdownItOptions: {
        html: true,
        linkify: true,
        typographer: true,
      },
      // markdown-it plugin load
      // add options , emoji => [emoji, options]
      markdownItUses: [emoji],
    })
  ],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions