Documentation
¶
Overview ¶
Package embedded scans standard markdown documents for cm/calcmark fenced code blocks and splits the input into passthrough and CalcMark segments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Segment ¶
type Segment struct {
Kind SegmentKind
Text string // For Passthrough: the raw text (including newlines). For CalcMarkBlock: the block content (without fence lines).
OpenLine int // 1-based line number of the opening fence in the host document (0 for Passthrough).
}
Segment represents either passthrough markdown text or an extracted CalcMark block.
type SegmentKind ¶
type SegmentKind int
SegmentKind distinguishes passthrough text from CalcMark blocks.
const ( // Passthrough represents markdown text that is not a CalcMark block. Passthrough SegmentKind = iota // CalcMarkBlock represents an extracted CalcMark fenced code block. CalcMarkBlock )
Click to show internal directories.
Click to hide internal directories.