Skip to content

Releases: remarkjs/react-remark

v2.1.0

29 Dec 17:46
5b21d53
Compare
Choose a tag to compare
  • 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: v2.0.3...v2.1.0

v2.0.3

09 Jan 17:24
v2.0.3
642866f
Compare
Choose a tag to compare

Correct typo in module entrypoint

v2.0.2

12 Dec 14:15
v2.0.2
6ee7d1e
Compare
Choose a tag to compare

update documentation to reflect move to remarkjs organization

v2.0.1

12 Dec 04:08
v2.0.1
940bcfa
Compare
Choose a tag to compare

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

12 Dec 01:10
v2.0.0
ec0e78b
Compare
Choose a tag to compare

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.

⚠️ Breaking Change ⚠️ 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.