Documentation
¶
Overview ¶
Package content renders Markdown bodies for content pages (REQ-CNT-02) and code frames for the docs kit (REQ-CNT-05). It wraps the internal renderers, so package gx keeps no Markdown or chroma dependency (SDD §12.4). Content comes from repository files (SI-12).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Body ¶
Body renders the Markdown body of a content entry: CommonMark plus GFM, footnotes and heading anchors.
func Code ¶
func Code(c gx.Code, opt CodeOptions) gx.Node
Code renders a resolved code block (REQ-CNT-05): the compiler fills gx.Code at build time from a repository file, and chroma highlights it here.
Types ¶
type CodeOptions ¶
type CodeOptions struct {
// Title sits in the frame bar.
Title string
// Wrap wraps long lines.
Wrap bool
// Marks, Ins, Del and Words mark 1-based lines of the shown source.
Marks []int
Ins []int
Del []int
Words []int
}
CodeOptions are the frame options of a code block (REQ-CNT-05).