$list ( element -- )
Factor handbook » Developer tools » Help system » Writing documentation » Element types » Block elements

Prev:$links ( topics -- )
Next:$markup-example ( element -- )


Vocabulary
help.markup

Inputs
elementan array of markup elements


Outputs
None

Word description
Prints a bulleted list of markup elements.

Notes
A common mistake is that if an item consists of more than just a string, it will be broken up as several items:
{ $list "First item" "Second item " { $emphasis "with emphasis" } } print-element

First item
Second item
with emphasis

The fix is easy; just group the two markup elements making up the second item into one markup element:
{ $list "First item" { "Second item " { $emphasis "with emphasis" } } } print-element

First item
Second item with emphasis


Definition