- Fix blockquote termination by list item, #338.
- Fix table indentation issues, #325, #224.
- Remove tabs at the beginning of the line in paragraphs.
- Fix blockquote termination inside indented lists, #329.
- Better error message for bad input type, #324.
- Add
-o
/--output
option to CLI, #312.
- Add missed h2..h6 to whitelisted block tags.
- Updated CM spec compatibility to 0.27 (no significant changes).
- Fix backticks handle inside tables, #303.
- Fix edge case for fenced blocks with
~~~
in info, #301. - Fix fallback to reference if link is not valid, #302.
- Make link parse helpers (
md.helpers
) pluggable, #299.
- Tables: allow tab characters in markup
- Updated CM spec compatibility to 0.26:
- Two consecutive newlines no longer terminate a list.
- Ordered list terminating a paragraph can now only start with 1.
- Adjust emphasis algorithm (
*foo**bar**baz*
is now parsed as<strong>
inside<em>
). - Fix tab width calculation inside lists and blockquotes.
- Benchmarks src cleanup.
- Remove testing in old nodes (but still use es5).
- Fence renderer: fix concat of class array, #276.
- Code renderer: do not render double space before attrs, #275.
- Replacer: disable replacements inside autolinks, #272.
- Bump
linkify-it
dependency to 2.0.0.---
no longer terminates autodetected links by default.md.linkifier.set('---', true)
will return old behaviour.
- Major version bumped, because internals or
linkify-it
was changed. You will not be affected anyhow, if not used direct access torequire('linkify-it/re')
for customizations.
- Render
code_inline
&code_block
attributes if exist.
- Updated
fence
renderer to not mutate token. Token stream should be immutable after renderer call.
- Process
\r
the same way as\n
and\r\n\
, #252.
- Added
Token.attrGet()
method for convenience, #251.
- Security fix: possible ReDOS in
linkify-it
(forced bump oflinkify-it
&uc-micro
dependencies). New installs will use fixed packages automatically, but we bumpedmarkdown-it
version for sure & for web builds.
- Fix: should not escape twice content of image alt attribute, #246.
- Improve support of missing values in tables, #224.
- Maintenance release. Version bump caused by notable changes in CM spec (multiline setext headers, no spaces inside links, ...). API was not changed.
- Fit CM 0.24 spec requirements.
- Fixed nesting limit check in inline blocks, #197.
- Fixed posible tail loss in CLI ouput.
- Token: added
.attrSet()
&.attrJoin()
methods. - Highlighter: allow wrapper override (if result starts with "<pre").
- Allow single column and mismatched columns count in tables.
- Smartquotes: take into account adjacent tokens.
- Fill
content
property in image token withalt
source.
- Fix meta information (
token.markup
andtoken.info
) for autolink tokens.
- Improved tables compatibility with github, #120.
- Internal API change. Due to new CM spec requirements, we had to update internals. That should not touch ordinary users, but can affect some external plugins. If you are plugin developper - see migration guide: https://github.com/markdown-it/markdown-it/blob/master/docs/5.0_migration.md.
- Updated CM spec compatibility to 0.22:
- Keep tabs (don't replace with spaces).
- Don't wrap iframes with paragraphs.
- Rewritten emphasis algorithm.
- Fix closure compiler collisions (don't use reserved words), #159.
- Updated HTML blocks logic to CM 0.21 spec.
- Minor fixes.
- Allow numbered lists starting from zero.
- Fix class name injection in fence renderer.
linkify-it
dependency update (1.2.0). Now accepts dash at the end of links.
- CM spec 0.20.
- Added support for multichar substituition in smartquites, #115.
- Fixed code block render inside blockquites, #116.
- Doc fixes.
- Minor emphasis update to match CM spec 0.19.
- Bumped linkify-it version to
1.1.0. Now links with IP hosts and without protocols are not linkified by
default, due possible collisions with some version numbers patterns (0.5.0.0).
You still can return back old behaviour by
md.linkify.set({ fuzzyIP: true })
.
- Bumped linkifier version. More strict 2-chars tald support for links without
schema. Should not linkify things like
io.js
andnode.js
.
- Improved pipe chars support in table cells, #86 (thanks to @jbt).
- Security: disabled
data:
URLs by default (except some image mimes), to avoid possible XSS. Version bumped, because features changed (formally). If you did not useddata:
URLs, consider this version as 4.0.4 (no API changes). - Simplified link validator code. Now more easy to understand and to copy into your projects for customization.
- Updated linkifier.
- Smartquotes rule cleanup (#76).
- Fixed replacements rule bug in PhantomJS (#77).
- Fixed emphasis
marker
fields in tokens (#69). - Fixed html block tokens with numbers in name (#74).
- Updated
linkify-it
version. - Added custom container plugin demo.
- Breaking internal API changes. See v4 migration notes. In usual case you will need to update plugins.
- Token internals changed
- Unified the most of renderer methods.
- Changed tokens creation - use
state.push(...)
(see sources) - Moved
normalizeUrl()
to root class as.normalizeLink()
& addednormalizeLinkText()
method. - 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()
inutils
. 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).
- Significantly improved autolinking quality (use
linkify-it
package), #2. - Rewritten links normalizer to solve different edge cases (use
mdurl
package), #29. - Moved link title entities replace out of renderer.
- Fixed escaped entities in links (
foo\&/bar
). - Improved smartquotes logic, #61.
- Spec conformance update to 0.18.
- Match table columns count by header.
- Added basic CLI support.
- Added \v \f to valid whitespaces.
- Use external package for unicode data (punctuation).
- Fixed hang on long vertical list of links. Appeared in 3.0.5. See #54 for details. Thanks to @fengmk2 for report!
- Table lines now can have escaped pipe char
\|
(#5). - Sync scroll result => source in demo.
- Moved
normalizeReference()
to utils.
- Fixed link validator - could skip some kind of javascript links with uppercase digital entities (thanks to @opennota)
- Significantly improved tests coverage (with dead code removal and other related things).
- Improved errors processing in url normalizer (for broken sequences).
- Improved nesting limit processing in inline parser.
- Reorganised tests & improved coverage.
- Show inline diffs for failed tests.
- Fixed punctuation check in emphasis.
- Allow dashes in HTML tag names (needed for custom HTML tags).
- Improved link encoder - fix invalid surrogates to avoid errors.
- Added # to terminator chars.
- Big split. All "rare" rules moved to external plugins (deflist, abbr, footnote, sub, sup, ins, mark).
- Updated CM spec conformance to v0.15 (better unicode support).
- Added
md
(parser instance) link to all state objects (instead of former options/parser). - References/Footnotes/Abbrs moved to
block
chain. - Input normalization moved to
core
chain. - Splitted links and images to separate rules.
- Renamed some rules.
- Removed
full
preset. Not needed anymore. - enable/disable methods now throw by default on invalid rules (exceptions can be disabled).
- Fixed inline html comments & cdata parse.
- Replace NULL characters with 0xFFFD instead of strip.
- Removed custom fences sugar (overcomplication).
- Rewritten link components parse helpers.
- More functions in
md.utils
.
- Added development info.
- Fixed line breaks in definitions lists.
- .use() now pass any number of params to plugins.
- Updated CM spec conformance to v0.13.
- API docs.
- Added 'zero' preset.
- Fixed several crashes, when some basic rules are disabled (block termination check, references check).
- Added curring to
set
/configure
/enable
/disable
methods. - Demo rework - now can include plugins.
- Docs update.
- Exposed helpers into parser instances (for plugins).
- Removed utils from global export - been in instances seems enougth.
- Refactored demo & added markdown-it-emoji to it.
- Refreshed browser builds, missed in prev release.
- Minor changes.
- Separated method to enable rules by whitelist (enableOnly).
- Changed second param of enable/disable ruler methods.
- Shortcuts in main class for bulk enable/disable rules.
- ASCII-friendly browserified files.
- Separate package for spec tests.
- New project name & home! Now it's
markdown-it
, - Sugar for constructor call -
new
is not mandatory now. - Renamed presets folder (configs -> presets).