{"repo":"remarkjs/react-remark","free":true,"listed":false,"github":"https://github.com/remarkjs/react-remark","clone":"git clone https://github.com/remarkjs/react-remark.git","description":"React component and hook to use remark to render markdown","language":"TypeScript","stars":247,"topics":["react","markdown","remark","unified","rehype","react-components","react-hooks"],"license":"MIT","category":"ui-components","readme_excerpt":"react-remark react-remark offers a React hook and React component based way of rendering markdown into React using remark Installation npm yarn Usage As a hook Render static content Using input and events to update Server side rendering :notebook: Note that some remark plugins are async, these plugins will error if used with useRemarkSync . More examples of usage as hook in storybook. As a component Render static content Using input and events to update More examples of usage as component in storybook. Examples A set of runnable examples are provided through storybook at . The source for the story files can be found in /stories . Architecture relevant links: markdown, remark, mdast, remark plugins, remark-rehype, hast, rehype plugins, rehype-react Options - remarkParseOptions (Object) - configure how Markdown is parsed, same as remark-parse options - remarkPlugins (Array) - remark plugins or custom plugins to transform markdown content before it is translated to HTML (hast) - remarkToRehypeOptions (Object) - configure how Markdown (mdast) is translated into HTML (hast), same as remark-rehype options - rehypePlugins (Array) - rehype plugins or custom plugins to transform HTML (hast) before it is translated to React elements. - rehypeReactOptions (Object) - configure how HTML (hast) is translated into React elements, same as rehype-react options Pass options to hook Pass options to component","default_branch":null,"files":null,"tree":[],"storefront":"/r/remarkjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remarkjs/react-remark/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."}