Configuration

Roger, of course, was not a normal human being. His muscular system was content with prolonged overloads in almost any configuration it could bend into at all.

Frederik Pohl, Man Plus (1976)

Currently, Mau supports the following configuration variables

mau.parser

mau.parser.block_definitions

Custom block definitions that we want to create through configuration instead of using ::defblock:.

mau.parser.header_anchor_function

A function that creates a unique anchor for headers. The prototype is def header_anchor(text:str, level:str) -> str, where text is the content of the header and level is the depth level.

mau.parser.content_wrapper

The node to use to wrap the content. The default value is ContainerNode. This has to be an instance and not just a class or a class name.

mau.visitor

mau.visitor.class

The Python class that implements the visitor interface and provided by a plugin.

mau.visitor.prefixes

The template prefixes that should be used.

mau.visitor.template_providers

The template providers plugin we want to load. Mau autodetects template plugins but doesn't automatically load them. They need to be explicitly activated.

mau.visitor.templates_directory

The directory that contains template files, saved either with a flat or a nested structure. See Basic templates.

mau.visitor.custom_templates

Custom templates that we want to define through configuration. See Basic templates.