Give Tag
objects an optional string name for debugging, and use it in their toString
method.
The new highlightCode
function provides a higher-level interface for emitting highlighted code.
Fix a bug in that could cause it to add random highlighting to the text between parts of an overlaid tree.
Inheritable (/...
) styles no longer apply across mounted subtrees.
Make sure TypeScript declaration file has the same name as the ES module to avoid some TypeScript resolution issues.
Fix a bug where the highlighting over overlaid ranges falling within a highlighted node in the parent tree was sometimes broken.
Fix an issue where unmodified tags were treated as having higher specificity than modified ones when computing precedence for tags with multiple modifiers.
Make sure all
highlighting is applied even to nodes with no associated highlight tags.
The new getStyleTags
function can be used to query the style tags that match a given syntax nodes.
First stable version.
First numbered release.