Skip to main content

Module markup

Module markup 

Source
Expand description

A tip’s text: {key} placeholders resolved to the key bindings in force, then **bold** and `code` drawn.

Enums§

Run
A run of text: plain, bold or code.

Functions§

has_own_key
Whether a text has a bare {key} (its own command’s binding).
job
The text laid out in a style: bold strong, code in the code style, wrapping in the width given.
named_commands
The commands a text names in {key:<command>} placeholders, in order, each once.
resolve
Replaces {key} with own’s text and {key:<command>} with other(<command>)’s; a placeholder without an answer stays as it is.
runs
The text cut into runs (**bold**, `code`; an unclosed mark is plain text).