This PR adds some lifecycle hooks and makes the math parsing a responsibility of MarkdownIt. We still use the ILatexTypesetter interface for typesetting, but this is done explicitly as a post-Markdown rendering transformation.
New Features:
IPluginProvider.rank: order of plugin registration, ascending (default 100)
IPluginProvider.postRenderHook: provider of IPostRenderer object
IPluginProvider.preParseHook: provider of IPreParser object
IPostRenderer:
IPostRenderer.rank: order of callback, ascending (default 100)
IPostRenderer.postRender: callback after rendering to HTML is complete
IPreParser:
IPreParser.rank: order of callback, ascending (default 100)
IPreParser.preParser: callback before parsing is performed. Transforms the parsed text.
This PR adds some lifecycle hooks and makes the math parsing a responsibility of MarkdownIt. We still use the
ILatexTypesetter
interface for typesetting, but this is done explicitly as a post-Markdown rendering transformation.New Features:
IPluginProvider.rank
: order of plugin registration, ascending (default 100)IPluginProvider.postRenderHook
: provider ofIPostRenderer
objectIPluginProvider.preParseHook
: provider ofIPreParser
objectIPostRenderer
:IPostRenderer.rank
: order of callback, ascending (default 100)IPostRenderer.postRender
: callback after rendering to HTML is completeIPreParser
:IPreParser.rank
: order of callback, ascending (default 100)IPreParser.preParser
: callback before parsing is performed. Transforms the parsed text.