MarkdownNativeCodeBlock
OfficeIMO.Markdown
Native projection for a code block.
Inheritance
- MarkdownNativeBlock
- MarkdownNativeCodeBlock
Inherited Methods
public bool ContainsLine(int lineNumber) #Parameters
- lineNumber int
Returns
boolpublic IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields() #Returns
IEnumerable<MarkdownNativeBlockSourceField>public IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields(string name) #Parameters
- name string
Returns
IEnumerable<MarkdownNativeBlockSourceField>public MarkdownNativeBlockSourceField? FindSourceField(string name, int index = -1) #Parameters
- name string
- index int = -1
Returns
MarkdownNativeBlockSourceField?public MarkdownNativeBlockInfo ToSnapshot() #Returns
MarkdownNativeBlockInfoProperties
public MarkdownCodeFenceInfo FenceInfo { get; } #Structured fenced-code metadata.
public string Content { get; } #Code content with normalized line endings.
public IReadOnlyDictionary<string, string?> Attributes { get; } #Parsed fence attributes.
public string? Title { get; } #Convenience title resolved from fence metadata.
public string? OpeningFence { get; } #Opening fence marker text, preserving the parsed marker character and length when source-backed.
public string? ClosingFence { get; } #Closing fence marker text, preserving the parsed marker character and length when source-backed.
public MarkdownSourceSpan? OpeningFenceSourceSpan { get; } #Source span for the opening fence marker when the block was parsed from a fenced source block.
public MarkdownSourceSpan? InfoStringSourceSpan { get; } #Source span for the fenced-code info string when the block was parsed from a fenced source block.
public MarkdownSourceSpan? AttributeSourceSpan { get; } #Source span for explicit generic attributes inside the fenced-code info string.
public MarkdownSourceSpan? ContentSourceSpan { get; } #Source span for the code payload when available.
public MarkdownSourceSpan? ClosingFenceSourceSpan { get; } #Source span for the closing fence marker when the block was parsed from a closed fenced source block.
Inherited Properties
public MarkdownNativeBlockKind Kind { get; } #public MarkdownSourceSpan? SourceSpan { get; } #public MarkdownSyntaxNode SyntaxNode { get; } #public IMarkdownBlock SourceBlock { get; } #