docs/5.0_migration.md
v5 has the same external API as v4, only internals were changed. Some external
plugins may need update (all plugins from markdown-it github organization are
up to date).
External API did not change.
markdown-it with plugins, make sure to update them.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)stateInline.ruler2 and stateInline.delimiters needed to parse emphasis-like markup better
stateInline.skipToken, they treat a sequence of markers (e.g. ***) as a token insteadstateInline.delimiters is linked with stateInline.tokens, so truncating/splicing stateInline.tokens may break things