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.
 
 
 

618 B

Migration to v5

v5 has the same external API as v4, only internals were changed. Plugins that introduce block elements might need an update.

For users

External API did not change.

  • If you use markdown-it with plugins, make sure to update them.

For plugin developers

  • added stateBlock.sCount to calculate indents instead of stateBlock.tShift, it only differs if tabs are present:
    • stateBlock.tShift is used to calculate a number of characters (tab is 1 character)
    • stateBlock.sCount is used to calculate the block offset (tab is 1-4 characters depending on position)