The
content
argument of macros contains the "main content" of the macro, i.e. the textual content that will show the most proeminently once the macro is rendered. It is usually, but not always, the first positional argument of macros. We should probably make it into an official macro argument property at some point.In most cases, it is quite obvious which argument is the
content
argument, e.g.:\i
macro: in\i[asdf qwer]
thenasdf qwer
is thecontent
argument\a
macro: in\a[https://example.com][example website]
thenexample website
is thecontent
argument
Some macros however don't have a
content
argument, especially when they don't show any textual acontent as their primary rendered output, e.g.:\Image
macro: this macro hastitle
byt not content, e.g. as in:\Image[flower.jpg]{title=}
, since the primary content is theImage
rather than any specific text
Philosophically, the
content
argument of a macro is analogous to the innerHTML
of an HTML tag, as opposed to attributes such as href=
and so on. The difference is that in OurBigBook Markup, every macro argument can contain child elements, while in HTML only the innerHTML
, but not the attributes, can.