-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
<font>
element does not work
#759
Comments
Please use markdown, this question is not readable |
input: |
Don‘t use font? It’s ancient and not supported by React? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font |
This comment has been minimized.
This comment has been minimized.
input: |
but the span also render right, there are extra html elements; |
@PDmeaning I'm not sure what you are doing/using. source from sandboximport React from 'react';
import Markdown from 'react-markdown';
import rehypeRaw from 'rehype-raw';
const markdownSource = `
<span style="color:#ff0000">text</span>
`;
const App = () => (
<Markdown rehypePlugins={[rehypeRaw]}>{markdownSource}</Markdown>
);
export default App; If you have any follow up questions, please read the support guidelines on how to ask quality questions: https://github.com/remarkjs/.github/blob/main/support.md |
Initial checklist
Affected packages and versions
5.0.3 version
Link to runnable example
No response
Steps to reproduce
<ReactMarkdown
children={input}
plugins={[gfm]}
escapeHtml={false}
renderers={{ code: CodeBlock }}
/>
input="text",
but the output of html show as "text",
so the color cant show right
Expected behavior
the color of text is "#ff0000"
Actual behavior
the color of text is default(black)
Runtime
Node v16
Package manager
npm 8
OS
macOS
Build and bundle tools
Webpack
The text was updated successfully, but these errors were encountered: