react-markdown-loader icon indicating copy to clipboard operation
react-markdown-loader copied to clipboard

markdown code blocks do not work

Open mrbinky3000 opened this issue 8 years ago • 2 comments

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.

mrbinky3000 avatar Jan 16 '17 19:01 mrbinky3000

can you comment what version of node and webpack you are using?

javiercf avatar Jan 16 '17 19:01 javiercf

I am also facing the same issue is there any way around? node: "8.9.4", webpack: "4.1.0"

therise3107 avatar Apr 02 '18 18:04 therise3107