react-markdown-loader
react-markdown-loader copied to clipboard
markdown code blocks do not work
The following md file results in an error
```
This is a code block
```
ERROR in ./src/Brander/README.md
Module build failed: TypeError: Cannot read property 'rest' of undefined
at Object._self.Prism.tokenize (/my-project/node_modules/prismjs/prism.js:265:21)
at Object._self.Prism.highlight (/my-project/node_modules/prismjs/prism.js:256:18)
at Function.highlight (/my-project/node_modules/react-markdown-loader/src/parser.js:86:22)
at Object.rules.fence (/my-project/node_modules/remarkable/lib/rules.js:73:37)
at Renderer.render (/my-project/node_modules/remarkable/lib/renderer.js:71:39)
at Remarkable.render (/my-project/node_modules/remarkable/lib/index.js:152:24)
at err (/my-project/node_modules/react-markdown-loader/src/parser.js:105:17)
at parseMarkdown (/my-project/node_modules/react-markdown-loader/src/parser.js:81:10)
at Object.parse (/my-project/node_modules/react-markdown-loader/src/parser.js:132:10)
at Object.module.exports (/my-project/node_modules/react-markdown-loader/src/index.js:16:6)
It seems as though I can't render any code blocks.
can you comment what version of node and webpack you are using?
I am also facing the same issue is there any way around? node: "8.9.4", webpack: "4.1.0"