Class Sealed
public sealed class CodeGroupBlock : ContainerBlock

Namespace: Moka.Docs.Parsing.Markdown

Represents a code-group container with tabbed code blocks.

Inheritance

Inherits from: ContainerBlock

Constructors

Properties

NameDescription
GroupId Unique ID for tab linking.

GroupId

string CodeGroupBlock.GroupId { get; set; }

Unique ID for tab linking.

Type Relationships
classDiagram
                    style CodeGroupBlock fill:#f9f,stroke:#333,stroke-width:2px
                    CodeGroupBlock --|> ContainerBlock : inherits
                
View Source
/// <summary>
///     Represents a code-group container with tabbed code blocks.
/// </summary>
public sealed class CodeGroupBlock : ContainerBlock
{
    private static int _counter;
    public CodeGroupBlock(BlockParser parser) : base(parser)
    {
        GroupId = $"codegroup-{Interlocked.Increment(ref _counter)}";
    }

    /// <summary>Unique ID for tab linking.</summary>
    public string GroupId { get; set; }
}
Was this page helpful?