Yelp

(The Help System)

mal2html.block.mode

Process Mallard elements in block mode.

Parameters

restricted

Whether this is restricted block mode.

This mode is applied to elements in block context. It should be called by templates for pages, sections, and block container elements. Certain elements may appear in both block an inline mode, and the processing expectations for those elements is different depending on context.

Implementations of this mode should generally output a wrapper div and process the child elements, either in mal2html.block.mode or mal2html.inline.mode, or using special processing for particular content models.

When this mode encounters unknown content, templates in the same mode are applied to the children, but the restricted parameter is set to true. When restricted is true, unknown block elements are ignored. This is in accordance with the Mallard specification on fallback block content.