twardoch / remark-mark-plus

Plugin for remark to allow ==Text me== -> <mark>Text me</mark>
MIT License
3 stars 0 forks source link

Errors with the latest react-markdown #8

Open tzjames opened 11 months ago

tzjames commented 11 months ago

When using "react-markdown": "^9.0.0",

import ReactMarkdown from "react-markdown";
import markPlus from "remark-mark-plus";
<ReactMarkdown remarkPlugins={[markPlus]}/>{text}</ReactMarkdown>

throws an error:

Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'prototype')

Call Stack
Function.plugin
../../node_modules/remark-mark-plus/dist/index.js (56:0)
EryouHao commented 3 months ago

@tzjames I encountered the same problem, have you solved it?