chore(deps): update dependency react-markdown to v5 #153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.2.0
->^5.0.0
By merging this PR, the issue #124 will be automatically resolved and closed:
Release Notes
remarkjs/react-markdown (react-markdown)
v5.0.0
Compare Source
BREAKING
Maintained by unified
This project is now maintained by the unified collective, which also houses the
underlying tools used in
react-markdown
: hundreds of projects for working withmarkdown and markup related things (including MDX).
We have cleaned the project: updated dependencies, improved
docs/tests/coverage/types, cleaned the issue tracker, and fixed a couple of
bugs, but otherwise much should be the same.
Upgrade
remark-parse
The parser used in
react-markdown
has been upgraded to the latest version.It is now 100% CommonMark compliant: that means it works the same as in other
places, such as Discourse, Reddit, Stack Overflow, and GitHub.
Note that GitHub does extend CommonMark: to match how Markdown works on GitHub,
use the
remark-gfm
plugin.[email protected]
[email protected]
[email protected]
[email protected]
New serializer property:
node
A new
node
prop is passed to all non-tag/non-fragment renderers.This contains the raw mdast AST node,
which opens up a number of interesting possibilities.
The breaking change is for renderers which blindly spread their props to an
underlying component/tag.
For instance:
Should now be written as:
List/list item
tight
property replaced byspread
Previously, the
tight
property would hint as to whether or not list itemsshould be wrapped in paragraphs.
This logic has now been replaced by a new
spread
property, which behavesslightly differently.
Read more.
v4.3.1
Compare Source
Fixes
v4.3.0
Compare Source
Fixes
react-markdown/html-parser
(Peng Guanwen)v4.2.2
Compare Source
Fixes
RemarkParseOptions
for now (Espen Hovlandsdal)v4.2.1
Compare Source
Fixes
RemarkParseOptions
(Jakub Chrzanowski)v4.2.0
Compare Source
Added
Fixes
parserOptions
to type defintions (Ted Piotrowski)v4.1.0
Compare Source
Added
parserOptions
to specify options for remark-parse (Kelvin Chan)v4.0.9
Compare Source
Fixes
(Florentin Luca Rieger)
v4.0.8
Compare Source
Fixes
(Nicolas Venegas)
v4.0.7
Compare Source
Fixes
Venegas)
v4.0.6
Compare Source
Fixes
v4.0.5
Compare Source
v4.0.4
Compare Source
Changed
v4.0.3
Compare Source
Fixes
v4.0.2
Compare Source
Fixes
Hovlandsdal)
v4.0.1
Compare Source
Fixes
v4.0.0
Compare Source
BREAKING
text
is now a first-class node + renderer— if you are using
allowedNodes
, it needs to be included in this list.Since it is now a React component, it will be passed an object of props
instead of the old approach where a string was passed.
children
will contain the actual text string.className
prop is provided, a fragment will beused instead of a div.
To always render a div, pass
'div'
as theroot
renderer.containers
window.ReactMarkdown
insteadof
window.reactMarkdown
Added
Fixes
renderers
(Linus Unnebäck)