Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractText ¶
ExtractText recursively writes the text content of n and its descendants into buf.
func HeadingLine ¶
HeadingLine returns the 1-based source line of a heading node. Setext headings expose their line via Lines(); ATX headings are found by walking inline descendants until the first text segment. Returns 1 as a safe fallback.
func HeadingText ¶
HeadingText returns the plain-text content of a heading by recursively extracting all text segments from its children.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.