React component to render markdown
21 Feb 2016 · Newest first
Last checked
Checking sources…
Showing 1 of 1 releases. Full release notes.
Signals highlight changes worth reviewing. They cannot determine whether your application is affected.
1.2.4 → 2.0.0
Breaking change: The renderer now requires Node 0.14 or higher. This is because the renderer uses stateless components internally.
allowNode now receives different properties in the
options argument.
See README.md for more details.Html is now HtmlInline, Header is now Heading and HorizontalRule
is now ThematicBreak.
This affects the allowedTypes and disallowedTypes options.allowedTypes/disallowedTypes and
allowNode options made them only applicable to certain types.
In this version, all types are filtered, as expected.javascript: with x-
(eg: javascript:alert('foo') turns into x-javascript:alert('foo')).
This can be overridden with the transformLinkUri-option.
Pass null to disable the feature or a custom function to replace the
built-in behaviour.renderers option allows you to customize which React component should
be used for rendering given types.
See README.md for more details.
(Espen Hovlandsdal / Guillaume Plique)unwrapDisallowed option allows you to select if the contents of a
disallowed node should be “unwrapped” (placed into the disallowed node
position).
For instance, setting this option to true and disallowing a link would still
render the text of the link, instead of the whole link node and all it’s
children disappearing.
(Espen Hovlandsdal)transformLinkUri option allows you to transform URIs in links.
By default, an XSS-filter is used, but you could also use this for use cases
like transforming absolute to relative URLs, or similar.
(Espen Hovlandsdal)