React Remark Versions Save

React component and hook to use remark to render markdown

v2.1.0

2 years ago
  • 761d303 Add use remark sync hook
  • ea5a79b Add an example of server side rendering with useRemarkSync
  • d55c5e2 Add storybook examples for useRemarkSync
  • 206e25f Fix remark to rehype options example
  • c2da750 Fix to use effect in the render once example
  • 5c6558d Fix import typo in readme example

Full Changelog: https://github.com/remarkjs/react-remark/compare/v2.0.3...v2.1.0

v2.0.3

3 years ago

Correct typo in module entrypoint

v2.0.2

3 years ago

update documentation to reflect move to remarkjs organization

v2.0.1

3 years ago

Add "sideEffects": false to allow webpack to fully tree shake https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

v2.0.0

3 years ago

react-markdown has a new name (generously donated by @aaronccwong, thank you!), a new version of remark, and new maintainers (@remarkjs)!

For users of react-remark v1

This component used to be based on remarkable it is now based on remark. If you are interested in migrating

<ReactRemark source={'# This is markdown!'}>

would become

<ReactRemark>{`# This is markdown!`}</ReactRemark>

in the new release.

For users of @christianmurphy/react-remark

The new npm package name is react-remark the version jumped from 0.3.1 to 2.0.0, due to a previous remarkable based version released as version 1.

:warning: Breaking Change :warning: remark has updated to version 13 https://github.com/remarkjs/remark/releases/tag/13.0.0 This upgrade means that by default only CommonMark is supported out of the box, if you need GitHub Flavored Markdown features, like tables and autolinking, please add remark-gfm as a plugin. For example:

import { Remark } from 'react-remark';
import remarkGfm from 'remark-gfm';

// ...
<Remark remarkPlugins={[remarkGfm]}>{content}</Remark>

This also means all remark plugins must be updated to versions that support remark 13.