Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown-it-katex with React.js #9

Open
yingw787 opened this issue Apr 6, 2017 · 1 comment
Open

Markdown-it-katex with React.js #9

yingw787 opened this issue Apr 6, 2017 · 1 comment

Comments

@yingw787
Copy link

yingw787 commented Apr 6, 2017

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!

@protoEvangelion
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants