{"repo":"remarkjs/react-markdown","free":true,"listed":false,"github":"https://github.com/remarkjs/react-markdown","clone":"git clone https://github.com/remarkjs/react-markdown.git","description":"Markdown component for React","language":"JavaScript","stars":15854,"topics":["markdown","commonmark","gfm","react","remark"],"license":"MIT","category":"productivity","readme_excerpt":"react-markdown [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] React component to render markdown. Feature highlights [x] [safe][section-security] by default (no dangerouslySetInnerHTML or XSS attacks) [x] [components][section-components] (pass your own component to use instead of for ## hi ) [x] [plugins][section-plugins] (many plugins you can pick and choose from) [x] [compliant][section-syntax] (100% to CommonMark, 100% to GFM with a plugin) Contents What is this? When should I use this? Install Use API Markdown MarkdownAsync MarkdownHooks defaultUrlTransform(url) AllowElement Components ExtraProps HooksOptions Options UrlTransform Examples Use a plugin Use a plugin with options Use custom components (syntax highlight) Use remark and rehype plugins (math) Plugins Syntax Compatibility Architecture Appendix A: HTML in markdown Appendix B: Components Appendix C: line endings in markdown (and JSX) Security Related Contribute License What is this? This package is a [React][] component that can be given a string of markdown that it’ll safely render to React elements. You can pass plugins to change how markdown is transformed and pass components that will be used instead of normal HTML elements. to learn markdown, see this [cheatsheet and tutorial][commonmark-help] to try out react-markdown , see [our demo][github-io-react-m","default_branch":null,"files":null,"tree":[],"storefront":"/r/remarkjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remarkjs/react-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}