Documentation ¶
Overview ¶
The package man outputs man pages from mmmark markdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
Renderer implements Renderer interface for Markdown output.
func NewRenderer ¶
func NewRenderer(opts RendererOptions) *Renderer
NewRenderer creates and configures an Renderer object, which satisfies the Renderer interface.
func (*Renderer) RenderNode ¶
RenderNode renders a markdown node to markdown.
type RendererOptions ¶
type RendererOptions struct { Flags Flags // Flags allow customizing this renderer's behavior Language lang.Lang // Output language for the document. // if set, called at the start of RenderNode(). Allows replacing rendering of some nodes RenderNodeHook html.RenderNodeFunc // Comments is a list of comments the renderer should detect when // parsing code blocks and detecting callouts. Comments [][]byte }
RendererOptions is a collection of supplementary parameters tweaking the behavior of various parts of Markdown renderer.
Click to show internal directories.
Click to hide internal directories.