Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 715 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 715 Bytes

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"
  }
}