Skip to content
ChartForgeX
Class

VisualMarkupBlock

ChartForgeX.Markup

Namespace
ChartForgeX.Markup
Assembly
ChartForgeX.Markup
Modifiers
sealed

Describes a supported visual fenced block extracted from Markdown.

Inheritance

  • object
  • VisualMarkupBlock

Usage

Explore 16 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 14

Constructors

public VisualMarkupBlock(VisualMarkupKind kind, string fenceName, string fenceInfo, int schemaVersion, string payload, int fenceLine, int startLine, int endLine, IReadOnlyDictionary<string, string> attributes) #

Initializes a visual markup block.

Parameters

kind ChartForgeX.Markup.VisualMarkupKind required
fenceName string required
fenceInfo string required
schemaVersion int required
payload string required
fenceLine int required
startLine int required
endLine int required
attributes System.Collections.Generic.IReadOnlyDictionary<string, string> required

Properties

public VisualMarkupKind Kind { get; } #

Gets the visual kind.

public string FenceName { get; } #

Gets the normalized fence name, such as chartforgex topology or mermaid.

public string FenceInfo { get; } #

Gets the full fence info string after the opening fence marker.

public int SchemaVersion { get; } #

Gets the ChartForgeX markup schema version, or zero for external languages such as Mermaid.

public string Payload { get; } #

Gets the extracted fence payload.

public int FenceLine { get; } #

Gets the one-based source line that contains the opening fence.

public int StartLine { get; } #

Gets the one-based source line where the payload starts.

public int EndLine { get; } #

Gets the one-based source line where the payload ends.

public IReadOnlyDictionary<string, string> Attributes { get; } #

Gets attributes parsed from trailing fence metadata when present.