Interface implemented for RenderExtensions that allow modification of the inbound Markdown before rendering or outbound HTML after rendering as well as any custom code that needs to be injected into the document header prior to rendering.
Use the RenderExtensionsManager.Current.RenderExtensions.Add()
to add any custom extensions you create. Typically you do this in the Addin.OnApplicationStart()
method.
public abstract interface IRenderExtension
Interface Members
Member | Description | |
---|---|---|
AfterDocumentRendered |
Fired after the document has been rendered to a complete HTML document using a Preview Template. Input HTML contains the final full HTML document. public void AfterDocumentRendered(ModifyHtmlArguments args) |
|
AfterMarkdownRendered |
Fired after Markdown has been converted to HTML and allows you to modify the rendered HTML fragment generated by the markdown. Note that this method can only change the rendered Markdown html, not the entire document. public void AfterMarkdownRendered(ModifyHtmlAndHeadersArguments args) |
|
BeforeMarkdownRendered |
Method that is fired on the inbound pass before the document is rendered and that allows you to modify the markdown before it is sent out for rendering. public void BeforeMarkdownRendered(ModifyMarkdownArguments args) |
Requirements
Namespace: MarkdownMonster.RenderExtensionsAssembly: markdownmonster.exe
© West Wind Technologies, 2016-2024 • Updated: 05/18/22
Comment or report problem with topic