Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed https://markdown-it.github.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

788 B

Migration to v4

v4 has the same external API as v3, but significantly changed internals. Plugin authors should update their packages.

Tokens and renderer

  • Tokens are now classes, and allow arbitrary attributes.
    • new tokens are created with token = state.push(type, tag, nesting). See this commit to understand how to create tokens in new way.
  • Renderer methods were unified. Number of custom renderer rules were significantly reduced.

Other changes

  • .validateLink() moved to root (MarkdownIt) class.