Optionalgroups: {}Activate all global extension Groups and the Groups associated with this registry.
The Document on which the extensions are to be used.
this Registry.
Register a BlockProcessor with the extension registry.
Class constructor, instance, block function, or name + one of those.
an Extension proxy object.
// class style
block(ShoutBlock)
// class style with explicit name
block(ShoutBlock, 'shout')
// block style
block(function () {
this.named('shout')
this.process(function (parent, reader, attrs) { ... })
})
// block style with explicit name
block('shout', function () {
this.process(function (parent, reader, attrs) { ... })
})
Register a BlockMacroProcessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Alias for docinfoProcessor (snake_case for prefer() / Registry method dispatch).
Register a DocinfoProcessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Retrieve Extension proxy objects for DocinfoProcessor instances.
Optionallocation: stringOptional location ('head' or 'footer') to filter by.
array of Extension proxy objects.
Retrieve the Extension proxy for the BlockProcessor registered with the given name.
The block name.
Retrieve the Extension proxy for the BlockMacroProcessor registered with the given name.
The macro name.
Retrieve the Extension proxy for the InlineMacroProcessor registered with the given name.
The macro name.
Check whether any BlockMacroProcessor extensions have been registered.
Check whether any BlockProcessor extensions have been registered.
Check whether any DocinfoProcessor extensions have been registered.
Optionallocation: stringOptional location ('head' or 'footer') to filter by.
Check whether any IncludeProcessor extensions have been registered.
Check whether any InlineMacroProcessor extensions have been registered.
Check whether any Postprocessor extensions have been registered.
Check whether any Preprocessor extensions have been registered.
Typo alias kept for backward compatibility. Use hasTreeProcessors.
Check whether any TreeProcessor extensions have been registered.
Alias for includeProcessor (snake_case for prefer() / Registry method dispatch).
Register an IncludeProcessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Return the registered IncludeProcessor extensions, or null if none.
Register an InlineMacroProcessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Retrieve all InlineMacroProcessor Extension proxy objects.
Register a Postprocessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Return the registered Postprocessor extensions, or null if none.
Insert the document-processor Extension as the first of its kind in the extension registry.
A ProcessorExtension, or a method name followed by processor args.
the Extension stored in the registry.
Register a Preprocessor with the extension registry.
The processor may be:
Class constructor, instance, or block function.
the Extension stored in the registry.
Return the registered Preprocessor extensions, or null if none.
Check whether a BlockProcessor is registered for the given name and context.
The block name.
The block context.
the Extension proxy or false.
Check whether a BlockMacroProcessor is registered for the given name.
The macro name.
Check whether an InlineMacroProcessor is registered for the given name.
The macro name.
Alias for treeProcessor (snake_case for prefer() / Registry method dispatch).
Register a TreeProcessor with the extension registry.
Class constructor, instance, or block function.
the Extension stored in the registry.
Alias for treeProcessors.
Return the registered TreeProcessor extensions, or null if none.
The primary entry point into the extension system.
Registry holds the extensions which have been registered and activated, has methods for registering or defining a processor and looks up extensions stored in the registry during parsing.