markdown-it-katex
markdown-it-katex copied to clipboard
Markdown-it-katex with React.js
I'm using Markdown-it-katex with React and it's rendering beautifully, but I have some issues with console errors popping up due to unrecognized props. For example, when I paste in
$$ \sqrt{4} = 2 $$
into my markdown file, the console reads:
bundle.js:461 Warning: Unknown prop `encoding` on <annotation> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in annotation
in semantics
in math
in span
in span
in span
in p
in div (created by Post)
in Post (created by PostsViewer)
in div (created by PostsViewer)
in PostsViewer (created by RegularPostsViewerWrapper)
in RegularPostsViewerWrapper (created by Route)
in Route
in Switch
in Router
This happens for other props as well, with more complicated equations. I was wondering whether I would be able to selectively disable attributes within the plugin given some options before React parses the returned HTML. Please let me know!
@waylonflinn Getting similar errors.
Warning: Unknown prop `mathvariant` on <mi> tag.
Warning: Unknown prop `encoding` on <annotation> tag
Warning: Unknown props `scriptlevel`, `displaystyle` on <mstyle> tag
Any ideas?