A macro argument property that is
inlineOnly can only contain inline macros. If any block macros present in the argument or its descendants, will lead to a conversion error.Some notable rules:
titlearguments are alwaywsinlineOnly- all arguments of inline macros are
inlineOnly
There are two main rationales for enforcing these rules:
- the HTML
h1-h6header HTML elements can only contain phrasing content (analogout to our inline macros) for the HTML to be valid. We could chose to use styleddivs instead ofhelements, but this could have a negative SEO impact. All other HTML elements could be replaced bydivs without issue however, the problem really is onlyh. - on OurBigBook Web, where multiple users are working together and many titles from multiple users show on index pages, it is saner to be more restrictive on what is allowed on titles and to prevent visually very large things from being added in order to prevent bad actors or accidents from disrupting other users too much