tiptap-markdown icon indicating copy to clipboard operation
tiptap-markdown copied to clipboard

markdown-it isSpace is not defined

Open marvin-season opened this issue 1 year ago • 6 comments

markdown-it isSpace is not defined, cause the ^14.0.1 of markdown-it is not available! isSpace is not build into dist (esm)

markdown-it isSpace is not defined, cause the ^14.0.1 of markdown-it is not available! isSpace is not build into dist (esm)

const text = editor.storage.markdown.parser.parse('1.hh') // error isSpace is not defined

switch markdown v13 is okay

marvin-season avatar Dec 28 '24 09:12 marvin-season

Same problem here. Using Next.js 15 in a client side component. Happens when the inserted content includes a list item, for example: 1. Bullet one and tiptap-markdown is being used as an extension in @tiptap/react

kristofferso avatar Feb 05 '25 12:02 kristofferso

I used an npm override in my package.json to set the markdown-it package to 13.0.2 – then my issue dissappeared.

kristofferso avatar Feb 05 '25 13:02 kristofferso

+1

switching down to 13.0.2 did indeed work.

  "resolutions": {
    "markdown-it": "13.0.2"
  }

tayloraucoin avatar Feb 05 '25 20:02 tayloraucoin

Switching to 13.0.2 worked!

bilalafzal01 avatar Feb 18 '25 05:02 bilalafzal01

This is still not fixed

xRitsu avatar May 25 '25 19:05 xRitsu

Still a problem.

NexWasTaken avatar Jun 17 '25 06:06 NexWasTaken