zestedesavoir / zmarkdown

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

remark-align@1.2.14 TypeError: Cannot set properties of undefined (setting 'alignBlocks') #446

Closed 0xinhua closed 2 years ago

0xinhua commented 3 years ago

hi,I use remark-align@1.2.14 in bytemd trying to test markdown text align in remark processing,

here's the codesandbox demo link: https://codesandbox.io/s/bytemd-remark-align-demo-lgvpb ,

it goes to a error: image

StaloneLab commented 3 years ago

What version of remark are you using? A mention is included in the README:

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

If you are using a version greater or equal to 13.0.0, then you'll need to wait for #416

0xinhua commented 3 years ago

Hi @StaloneLab thanks for your prompt reply ~ not a greater version, using "remark-parse": "^9.0.0", "remark-parse": "^9.0.0","remark-rehype": "^8.1.0", "unified": "^9.2.2" is there are some suggestions to solve this error ? thks.

StaloneLab commented 3 years ago

This is a greater version unfortunately. I was referring to the version of remark, but remark-parse has different versioning. See if you can make it work by downgrading remark-parse to 8.x. You might need to downgrade some other dependencies to have them work with it, for instance remark-rehype should stay in version 7.x.

If you cannot downgrade, then please refer to the issue linked above.