-
-
Notifications
You must be signed in to change notification settings - Fork 867
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
How does the styling work? #100
Comments
There isn't any styling by default. react-markdown just renders semantic markup, then it's up to the developer to apply styles to those. I'll flag this for clarity in v3's readme. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I installed this module with npm https://github.com/sindresorhus/github-markdown-css Then wrap your markdown with the className 'markdown-body' used by the css <div className='markdown-body'>
<ReactMarkdown source='# hello'/>
</div> This styles the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@rexxars |
@tnrich The web is made up of JS, HTML, and CSS. We use JS to turn Markdown into HTML. Similar to how React doesn’t style your website like GitHub, we don’t either. There is nothing in this project tied to GitHub, which is what |
There seems to be no mention about it? The demo code seems to be too cryptic!
The text was updated successfully, but these errors were encountered: