zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

Cannot read properties of undefined (reading 'blockTokenizers') #470

Closed polyamakov closed 1 year ago

polyamakov commented 1 year ago

Hi! I have problems, I have to update "react-markdown" at least to "^7.1.1", But when i do it remarkDisableTokenizers is broken.

<ReactMarkdown remarkPlugins={[remark, [remarkDisableTokenizers, { block: ['setextHeading'] }]]} ... />

"react-markdown": "^7.1.1", "remark-disable-tokenizers": "^1.1.0",

image

Could you help me please? no one on the whole internet has come across this problem

StaloneLab commented 1 year ago

Hello, I think you have the problem mentioned in issue #416 : your remark version does not match the version needed by our plugins. To be more specific, we state that:

Currently, all the plugins provided only work for remark versions lesser than 13.0.0.

If you are using a version greater than or equal to 13.0.0, then you'll need to wait (probably for a long time) for the plugin to be migrated or use the tricks mentioned here: https://github.com/zestedesavoir/zmarkdown/issues/416#issuecomment-982484060