mwg API
    Preparing search index...

    Function markupToHtml

    • Spans as an HTML fragment for a renderer that speaks HTML text, which is what the ui's RichLabel is. Emphasis, colour and size all render - HTMLText's dialect is real CSS, so a color/size span becomes a <span style="..."> wrapper - and the text is escaped, so a < b can never turn into a tag. An image span renders as nothing here: HTMLText has no inline-image primitive, so a caller that wants the image drawn positions a sprite itself, at the position layoutMarkupLines reports for that span.

      Parameters

      Returns string