Skip to main content

Module markup

Module markup 

Source
Expand description

Scanner for inline markup ([name]…[/name], [name /]) combined with {expr} interpolation. Both are parsed in one left-to-right pass.

Enums§

MarkupScanError
Errors returned by scan_text_segments.
TextToken
A token produced by scanning text that may contain {expr} and [markup] syntax.

Functions§

owned_properties
Converts borrowed (key, value) markup properties into owned pairs.
scan_text_segments
Scans text for {expr} and [markup] syntax, yielding tokens in order.