@pagoda-design/markdown-loader

0.0.1 • Public • Published

vant-markdown-loader

Simple and fast vue markdown loader, transform markdown to vue component.

Install

NPM

npm i @vant/markdown-loader -S

YARN

yarn add @vant/markdown-loader

Options

  • enableMetaData: Default false. Whether to use front-matter to extract markdown meta data

  • linkOpen: Default true. Whether to add target="_blank" to all links

  • wrapper(html, fm): Format the returned content using a custom function

    • html: The result of markdown-it's render
    • fm: See fm(string). If enableMetaData option is false, the value is undefined.
      • attributes
      • body
      • frontmatter

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @pagoda-design/markdown-loader

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    6.61 kB

    Total Files

    8

    Last publish

    Collaborators

    • ckang1229