You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
showLineNumbers defaults to false, pass { showLineNumbers: true } for the gutter v1 rendered by default.
highlightElement(elm, lang, mode, opt) is now highlightElement(elm, lang, opt) with the mode passed as opt.block, highlightHTML's opt.multiline is renamed to opt.block, and the emitted class changes from shj-multiline to shj-block.
the oneline mode and the shj-oneline class are gone, a div is always a block.
tokenizeSync is now tokenizeWith.
highlightANSI no longer defaults its theme, pass one from themes/*.js.
loadLanguage is gone, use setLoader or pass the grammar directly as lang.
highlightText is gone, use highlightHTML for markup or highlightANSI for a terminal.
printHighlight is gone, use highlightANSI.
setTheme is gone, pass the theme to highlightANSI instead.
the common.js entry is gone, its shared patterns are built into the tokenizer as { expand: 'num' | 'str' | 'strDouble' }.