Documentation
¶
Overview ¶
Package cfm implements chameth.com flavoured Markdown. Input must be trusted: raw HTML and unsafe URLs are preserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Highlighter ¶
Highlighter renders the body of a fenced code block as complete, trusted HTML. It receives the verbatim code and the block's language. When it reports an error, the renderer falls back to an escaped plain code block.
type Renderer ¶
type Renderer struct {
// Highlight renders fenced code blocks. When nil, or when it reports an
// error, fenced code falls back to escaped plain code.
Highlight Highlighter
}
Renderer converts Markdown source to HTML. The zero value is ready to use.
Click to show internal directories.
Click to hide internal directories.