1.0.0 • Published 5 years ago

json-markdown-loader v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

json-markdown-loader

This is intended to be used with amish-yaml-loader. If you want to load in Yaml files and parse markdown please refer to those documents. If you want to use this in json files keep reading.

install

install json markdown loader npm install json-markdown-loader --save-dev or yarn add json-markdown-loader -D

Webpack config

module: {
        rules: [
            {
                test: /\.ya?ml$/,
                use: ['json-loader', 'json-markdown-loader'],
            },
        ],
    }

Json

{
  "content": {
    "type": "markdown",
    "content": "##heading \n paragraph \n - list item \n - list item 2"
  }
}