#idea-bodyOne idea’s body, rendered, with none of a window’s chrome: no summary line, no permalink, no disclosure. For a consumer that wants to show an idea rather than describe it — a preview pane, a card in a view of the caller’s own design — where #ideas’ body field only hands over plain text.
#import "@rookery/core:0.1.0": idea, idea-body
#idea("etal", title: [Et al.])[
Attribution flattens a crowd into one name.
The convention is older than the citation styles that inherited it.
]
// anywhere after it, on any page
#idea-body("etal") // both paragraphs, no title, no permalink
#idea-body("etal", limit: 1) // the first paragraph alone| Argument | Type | Description |
|---|---|---|
name | str | label | The idea to render, in the same name forms every accessor here takes. |
unfurl | int | auto | The transclusion budget, as on #window. Pinned at 1 rather than auto, so a preview’s size stays bounded however deeply the idea it shows nests. 0 asks for no unfurling and still renders the body — there is no chrome here to fall back to a link. |
limit | int | none | How many blocks of the body to show, the same unit #window’s own limit cuts by. The whole body by default. |
It supplies its own #context, unlike the data accessors on this page, so it can be called anywhere. The body comes wrapped in the same classes a window’s does, minus the box, so every rule the stylesheet already writes for prose inside a window — link colors, code, lists, footnotes — applies with nothing for a consumer to restyle.