Potential breaking changes
- The release increments the stable major version.
1.2.4 → 2.0.0
- The changelog explicitly labels a breaking change.
Breaking change: The renderer now requires Node 0.14 or higher. This is because the renderer uses stateless components internally.
Changed
- Breaking change: The renderer now requires Node 0.14 or higher. This is because the renderer uses stateless components internally.
- Breaking change:
allowNodenow receives different properties in the options argument. SeeREADME.mdfor more details. - Breaking change: CommonMark has changed some type names.
Htmlis nowHtmlInline,Headeris nowHeadingandHorizontalRuleis nowThematicBreak. This affects theallowedTypesanddisallowedTypesoptions. - Breaking change: A bug in the
allowedTypes/disallowedTypesandallowNodeoptions made them only applicable to certain types. In this version, all types are filtered, as expected. - Breaking change: Link URIs are now filtered through an XSS-filter by
default, prefixing “dangerous” protocols such as
javascript:withx-(eg:javascript:alert('foo')turns intox-javascript:alert('foo')). This can be overridden with thetransformLinkUri-option. Passnullto disable the feature or a custom function to replace the built-in behaviour.