diff --git a/CHANGELOG.md b/CHANGELOG.md index b3805ce..ca44176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Moved `.validateUrl()` to root class and simplified logic - no more need to replace entities. - Joined md unescape & replace entities logic to `utils.unescapeAll()`. +- Removed `replaceEntities()` in `utils`. - `md.utils.lib` now exposes useful libs for plugins. - Use entities data from external package. - Fixed emphasis regression, caused by CM v0.18 spec (#65). diff --git a/docs/4.0_migration.md b/docs/4.0_migration.md index bb9b4fb..75a255d 100644 --- a/docs/4.0_migration.md +++ b/docs/4.0_migration.md @@ -21,13 +21,15 @@ External API did not changed. are now classes, and allow arbitrary attributes. - new tokens are created with `token = state.push(type, tag, nesting)`. See [this commit](https://github.com/markdown-it/markdown-it/commit/4aabd5592ea55fb43d6a215b316c89c6f6f1f7db) to understand - how to create tokens in new way. + how to create tokens in new way. Also see changes in plugins from other + repos in this org. - [Renderer](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js) methods were unified. Number of custom renderer rules were significantly reduced. Custom renderer functions need update due tokens format change. ### Other changes -- `.validateUrl()` -> moved to rooot class `.validateLink()` +- `.validateUrl()` -> moved to root class `.validateLink()` - added `.normalizeLink()` & `.normalizeLinkText()` to root class, and removed `normalizeUrl()` from utils. +- removed `replaceEntities()` in `utils`. diff --git a/package.json b/package.json index 98e2d52..e070726 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "markdown-it", - "version": "3.1.0", + "version": "4.0.0", "description": "Markdown-it - modern pluggable markdown parser.", "keywords": [ "markdown",