BREAKING
textis now a first-class node + renderer — if you are usingallowedNodes, 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.childrenwill contain the actual text string.- On React >= 16.2, if no
classNameprop is provided, a fragment will be used instead of a div. To always render a div, pass'div'as therootrenderer. - On React >= 16.2, escaped HTML will no longer be rendered with div/span containers
- The UMD bundle now exports the component as
window.ReactMarkdowninstead ofwindow.reactMarkdown
Added
- HTML parser plugin for full HTML compatibility (Espen Hovlandsdal)
Fixes
- URI transformer allows uppercase http/https URLs (Liam Kennedy)
- [TypeScript] Strongly type the keys of
renderers(Linus Unnebäck)