Expand description
Inline annotations a sender writes as markup and the wire carries as tags: colour
(text_color) and times (text_time). Core takes the markup out at every send and
edit; each span names a char range of the plain content that other clients read.
Re-exports§
Enums§
Functions§
- extract
- Take the markup out of
content: colour tags, then<t:…>times. Returns the plain text and its spans, offsets in chars of that text. - extract_
own extractfor something this account sends or edits: the colour markup still comes out, but its colour only rides along with the Text Effects perk.- from_
stored - The spans in a stored event’s tags, checked against its content.
- from_
tags - The spans a rumor’s tags carry, checked against its content.
- to_
nostr_ tags - The spans as rumor tags.