parseInlineMarkdown

Parses the lightweight inline markdown subset shared with the iOS client — **bold**, *italic*, ~~strikethrough~~, ` `code` ` and [label](url) — into a delimiter-stripped InlineMarkdownResult.displayText plus display-space StyleSpans and LinkSpans.

Inline-only, matching iOS AttributedString(markdown: .inlineOnlyPreservingWhitespace): block constructs (headings, lists, block quotes, fenced code, tables, images) are NOT interpreted — their markers survive as literal text because only the delimiter tokens that are direct children of a recognised inline element are removed. Whitespace and newlines are preserved. Malformed or unpaired markup degrades to literal text and never throws.

The result is consumed by AutoLinkText, which layers @mention and bare URL/email/phone links over the same InlineMarkdownResult.displayText.