Closed stefanb2 closed 1 year ago
I missed the part in the react-markdown
documentation that shows the official way to pass down plugin options. That one works fine with the current type:
remarkPlugins={[
[remarkEmoji, {
emoticon: true,
}],
...
]}
Developer asleep at the keyboard, I guess...
I'm trying to use
remark-emoji
as a plugin forreact-markdown
in a Typescript React application.Everything works fine, as long as I don't need to set any plugin options:
It seems that the default export is incorrectly typed when comparing it to the other two remark plugins my code uses:
The above code fails to compile with
To get the code compiled I have to cast
remarkEmoji
to the correct type