Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIRenderer ¶
type CLIRenderer struct {
// contains filtered or unexported fields
}
CLIRenderer is renderer for blackfriday.
func (*CLIRenderer) RenderFooter ¶
func (c *CLIRenderer) RenderFooter(w io.Writer, ast *bf.Node)
RenderFooter adds text at the foot
func (*CLIRenderer) RenderHeader ¶
func (c *CLIRenderer) RenderHeader(w io.Writer, ast *bf.Node)
RenderHeader adds text at the head
func (*CLIRenderer) RenderNode ¶
func (c *CLIRenderer) RenderNode(w io.Writer, node *bf.Node, entering bool) bf.WalkStatus
RenderNode renders each node to writer
type Option ¶
type Option func(*CLIRenderer)
Option customizes the Markdown processor's default behavior.
func WithHeadingStyle ¶
WithHeadingStyle sets the style of the headings. If useNumber is ture, `### heading` is displayed like this:
1.2.3 headings
If underlineLevel is not zero, h[n, n<=underlineLevel] is displayed like this:
1.2 headings ──────────────────────
func WithoutColor ¶
func WithoutColor() Option
WithoutColor turns off all color. Renderer draws with standard color only.
Click to show internal directories.
Click to hide internal directories.