docsmd

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package docsmd holds the small Markdown transforms shared by the two documentation-site generators — tools/docsgen (guide pages from the skill assets) and fft gen-docs (the CLI reference).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeAngles

func EscapeAngles(md string) string

EscapeAngles escapes a bare '<' (to &lt;) that sits outside fenced and inline code, so a placeholder like <id> in prose is not parsed as an HTML tag.

VitePress compiles rendered Markdown as a Vue template, and a stray "<id>" reads as an element with no closing tag — a hard build error. Only '<' opens a tag, so only '<' is touched: '>' is left alone, both because it opens nothing and because escaping it would mangle a blockquote marker. Code is left untouched too — there Markdown already escapes the angle brackets, and escaping again would show the entities raw.

func IsFenceDelimiter

func IsFenceDelimiter(line string) bool

IsFenceDelimiter reports whether a line opens or closes a fenced code block — a (possibly indented) run of at least three backticks or tildes. Both this package and tools/docsgen walk Markdown line-by-line tracking fence state, and must agree on what a fence looks like or one of them will silently process text the other treats as code.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL