API Reference
MarkdownReader
Block parsing helpers for MarkdownReader.
Inheritance
- Object
- MarkdownReader
Methods
LooksLikeTableRow(System.String arg1) #Determines whether a line is likely to be part of a markdown table. The logic follows CommonMark's relaxed table rules: when both outer pipes are present a single column is permitted, otherwise at least two pipe-separated cells are required so that plain paragraphs containing a single | are not mis-classified as tables.
Parameters
- arg1 System.String
public static MarkdownDoc Parse(String markdown, MarkdownReaderOptions options = null) #MarkdownDocParses Markdown text into a MarkdownDoc with typed blocks and basic inlines.
Parameters
- markdown System.String
- options OfficeIMO.Markdown.MarkdownReaderOptions = null
public static MarkdownDoc ParseFile(String path, MarkdownReaderOptions options = null) #MarkdownDocParses a Markdown file path into a MarkdownDoc.
Parameters
- path System.String
- options OfficeIMO.Markdown.MarkdownReaderOptions = null
public static InlineSequence ParseInlineText(String text, MarkdownReaderOptions options = null) #InlineSequenceParses a single line of Markdown inline content into a typed InlineSequence. This helper is exposed to allow other components (e.g., Word converter) to interpret inline markup in contexts like table cells where we currently store raw strings.
Parameters
- text System.String
- Inline Markdown text.
- options OfficeIMO.Markdown.MarkdownReaderOptions = null
- Reader options controlling inline interpretation.
Returns
Parsed sequence of inline nodes.
public static MarkdownParseResult ParseWithSyntaxTree(String markdown, MarkdownReaderOptions options = null) #MarkdownParseResultParses Markdown text into both the object model and a lightweight syntax tree with source spans.
Parameters
- markdown System.String
- options OfficeIMO.Markdown.MarkdownReaderOptions = null
public static MarkdownParseResult ParseWithSyntaxTreeAndDiagnostics(String markdown, MarkdownReaderOptions options = null) #MarkdownParseResultParses Markdown text into the object model, original syntax tree, and document-transform diagnostics.
Parameters
- markdown System.String
- options OfficeIMO.Markdown.MarkdownReaderOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object