Skip to main content

Module inline_markup

Module inline_markup 

Source
Expand description

Minimal inline-markup parser for label text.

Supports:

  • [label](url) — inline link
  • *italic* — italic run
  • **bold** — bold run

Escapes: \[, \], \(, \), \*, \\. Unclosed markers fall back to literal text — the parser never throws input away. Nesting works in the obvious cases (**bold *italic* bold**, [**bold link**](url)).

This module is independent of text-document: it only produces a small InlineMarkup representation that Typesetter::layout_single_line_markup and Typesetter::layout_paragraph_markup consume for tooltip / rich label content.

Structs§

InlineAttrs
Per-span style attributes. Link is orthogonal and carried on InlineSpan::link_url directly.
InlineMarkup
Parsed input ready for shaping. Preserves the original source for diagnostics and round-tripping.
InlineSpan
One parsed span of a minimally-marked-up string.