Optionalgroups: {}Register a BlockProcessor with the extension registry.
A BlockProcessor subclass.
Optionalname: stringOptional explicit block name.
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) { ... })
})
@overload
Register a BlockProcessor with the extension registry.
A BlockProcessor subclass.
Optionalname: stringOptional explicit block name.
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) { ... })
})
@overload
Register a BlockProcessor with the extension registry.
Optional explicit block name.
Registration function bound to the block DSL.
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) { ... })
})
@overload
Register a BlockProcessor with the extension registry.
Registration function bound to the block DSL.
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) { ... })
})
@overload
Register a BlockMacroProcessor with the extension registry.
A BlockMacroProcessor subclass.
Optionalname: stringOptional explicit macro name.
the Extension stored in the registry.
Register a BlockMacroProcessor with the extension registry.
A BlockMacroProcessor subclass.
Optionalname: stringOptional explicit macro name.
the Extension stored in the registry.
Register a BlockMacroProcessor with the extension registry.
Optional explicit macro name.
Registration function bound to the block macro DSL.
the Extension stored in the registry.
Register a BlockMacroProcessor with the extension registry.
Registration function bound to the block macro DSL.
the Extension stored in the registry.
Retrieve all BlockMacroProcessor Extension proxy objects.
Retrieve all BlockProcessor Extension proxy objects.
Alias for docinfoProcessor (snake_case for prefer() / Registry method dispatch).
Register a DocinfoProcessor with the extension registry.
A DocinfoProcessor subclass.
the Extension stored in the registry.
Register a DocinfoProcessor with the extension registry.
A DocinfoProcessor subclass.
the Extension stored in the registry.
Register a DocinfoProcessor with the extension registry.
Registration function bound to the docinfo processor DSL.
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.
Alias for registeredForBlock.
Alias for blockMacros.
Alias for blocks.
the plain Object that maps names to groups for this registry.
Alias for includeProcessors.
Alias for inlineMacros.
Alias for postprocessors.
Alias for preprocessors.
Alias for treeProcessors.
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.
An IncludeProcessor subclass.
the Extension stored in the registry.
Register an IncludeProcessor with the extension registry.
An IncludeProcessor subclass.
the Extension stored in the registry.
Register an IncludeProcessor with the extension registry.
Registration function bound to the include processor DSL.
the Extension stored in the registry.
Return the registered IncludeProcessor extensions, or null if none.
Register an InlineMacroProcessor with the extension registry.
An InlineMacroProcessor subclass.
Optionalname: stringOptional explicit macro name.
the Extension stored in the registry.
Register an InlineMacroProcessor with the extension registry.
An InlineMacroProcessor subclass.
Optionalname: stringOptional explicit macro name.
the Extension stored in the registry.
Register an InlineMacroProcessor with the extension registry.
Optional explicit macro name.
Registration function bound to the inline macro DSL.
the Extension stored in the registry.
Register an InlineMacroProcessor with the extension registry.
Registration function bound to the inline macro DSL.
the Extension stored in the registry.
Retrieve all InlineMacroProcessor Extension proxy objects.
Register a Postprocessor with the extension registry.
A Postprocessor subclass.
the Extension stored in the registry.
Register a Postprocessor with the extension registry.
A Postprocessor subclass.
the Extension stored in the registry.
Register a Postprocessor with the extension registry.
Registration function bound to the postprocessor DSL.
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:
A Preprocessor subclass.
the Extension stored in the registry.
Register a Preprocessor with the extension registry.
The processor may be:
A Preprocessor subclass.
the Extension stored in the registry.
Register a Preprocessor with the extension registry.
The processor may be:
Registration function bound to the preprocessor DSL.
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.
A TreeProcessor subclass.
the Extension stored in the registry.
Register a TreeProcessor with the extension registry.
A TreeProcessor subclass.
the Extension stored in the registry.
Register a TreeProcessor with the extension registry.
Registration function bound to the tree processor DSL.
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.
A registry can be reused across multiple conversions. Extensions registered via a group block (passed to Extensions.create or Extensions.register) are re-executed on every activation. Extensions registered directly on the registry instance (e.g.
registry.preprocessor(fn)) are preserved across activations.Example