MathExtension Class

Definition

Registers MathBlockRenderer and MathInlineRenderer. Markdig.Extensions.Mathematics.MathBlock extends Markdig's FencedCodeBlock, the same type MermaidBlockRenderer broadly accepts — unlike a plain Insert(0, ...) (which would make whichever extension registers last win), this scans for the first renderer that would accept a Markdig.Extensions.Mathematics.MathBlock and inserts just before it, so \(...\) blocks are never swallowed by another extension regardless of the order .UseMermaid()/.UseMath() (or their IMarkViewExtension equivalents) were registered in.

public sealed class MathExtension : IMarkViewExtension
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Methods (1)