Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
Options
// contains filtered or unexported fields
}
func (*Instance) Lookup ¶
Lookup resolves a clean URL path (e.g. "/docs/intro") to a Result. Returns (result, false, nil) if the path does not exist.
func (*Instance) PlainMarkdown ¶
PlainMarkdown returns the raw markdown with a title heading prepended.
func (*Instance) PlainTextMiddleware ¶ added in v0.83.0
PlainTextMiddleware serves plain markdown when the Accept header includes "text/plain" or "text/markdown" and the path matches one of the given patterns (kit/matcher semantics).
type Options ¶
type Options struct {
FS fs.FS
IsDev bool
FrontmatterParser FrontmatterParser
MarkdownParser MarkdownParser
}
Click to show internal directories.
Click to hide internal directories.