HtmlToAnnotatedString

Converts Highlight.js HTML output into a Compose AnnotatedString.

Uses jsoup to parse the HTML fragment and performs a recursive tree walk, pushing/popping SpanStyle for each <span class="hljs-*"> element.

Functions

Link copied to clipboard

Converts highlighted HTML to AnnotatedString using the provided color map.