react-markdown v3.0.0 Release Notes
Release Date: 2017-11-20 // over 6 years ago-
Notes
- FULL REWRITE. Changed parser from CommonMark to Markdown. Big, breaking changes. See BREAKING below.
β Added
- π Table support!
- New types:
table
,tableHead
,tableBody
,tableRow
,tableCell
- New types:
- New type:
delete
(~~foo~~
) - New type:
imageReference
- New type:
linkReference
- New type:
definition
- π Hacky, but basic support for React-native rendering of attributeless HTML
nodes (
<kbd>
,<sub>
, etc)
π₯ BREAKING
- π Container props removed (
containerTagName
,containerProps
), overrideroot
renderer instead - π
softBreak
option removed. New solution will be added at some point in the future. - 0οΈβ£
escapeHtml
is now TRUE by default -
HtmlInline
/HtmlBlock
are now namedhtml
(useisBlock
prop to check\ if inline or block) - Renderer names are camelcased and in certain cases, renamed.
For instance:
-
Emph
=>emphasis
-
Item
=>listItem
-
Code
=>inlineCode
-
CodeBlock
=>code
-
linebreak
/hardbreak
=>break
-
- All renderers:
literal
prop is now calledvalue
* List renderer:type
prop is now a boolean namedordered
(Bullet
=>false
,Ordered
=>true
) - π
walker
prop removed. Code depending on this will have to be rewritten to use theastPlugins
prop, which functions differently. -
allowNode
has new arguments (node, index, parent) β node has different props, see renderer props - π
childBefore
andchildAfter
props removed. Useroot
renderer instead. - π
parserOptions
removed (new parser, so the old options doesnβt make sense anymore)