AlertExtension Class
Extension for adding alerts to a Markdown pipeline.
public class AlertExtension : IMarkdownExtension- Implements
Constructors
| Name | Description |
|---|---|
| AlertExtension() |
AlertExtension()
public AlertExtension()No documentation is available.
Properties
| Name | Description |
|---|---|
| AllowNestedAlerts | Gets or sets a value indicating whether alerts can be nested inside other blocks (e.g. inside a blockquote or a list item). Alerts are never allowed inside another alert block regardless of this setting. Default is false. |
| RenderKind | Gets or sets the delegate to render the kind of the alert. |
AllowNestedAlerts
AlertExtension.csRenderKind
AlertExtension.csGets or sets the delegate to render the kind of the alert.
public Action<HtmlRenderer, StringSlice>? RenderKind { get; set; }Property value
Methods
| Name | Description |
|---|---|
| Setup(MarkdownPipeline, IMarkdownRenderer) | Setups this extension for the specified renderer. |
| Setup(MarkdownPipelineBuilder) | Setups this extension for the specified pipeline. |
Setup overloads
Setup(MarkdownPipeline, IMarkdownRenderer)
AlertExtension.csSetups this extension for the specified renderer.
public void Setup(MarkdownPipeline pipeline, IMarkdownRenderer renderer)Parameters
pipelineMarkdownPipeline- The pipeline used to parse the document.
rendererIMarkdownRenderer- The renderer.
Setup(MarkdownPipelineBuilder)
AlertExtension.csSetups this extension for the specified pipeline.
public void Setup(MarkdownPipelineBuilder pipeline)Parameters
pipelineMarkdownPipelineBuilder- The pipeline.