Documentation ¶
Index ¶
- Variables
- type Options
- type Page
- type Renderer
- func (r *Renderer) Code(w io.Writer, code *ast.Code)
- func (r *Renderer) CodeBlock(w io.Writer, codeBlock *ast.CodeBlock)
- func (r *Renderer) Image(w io.Writer, node *ast.Image, entering bool)
- func (r *Renderer) Link(w io.Writer, link *ast.Link, entering bool)
- func (r *Renderer) RenderNode(w io.Writer, node ast.Node, entering bool) ast.WalkStatus
- func (r *Renderer) RenderPage(mdFilename string, tplConfig *config.Template) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReadFile = errors.New("file reading error") ErrTpl = errors.New("template error") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { html.RendererOptions SyntaxDefaultLang string SyntaxTheme string }
type Renderer ¶
func NewDefaultRenderer ¶
func (*Renderer) RenderNode ¶
RenderNode process images, links, and code blocks differently than default renderer
Click to show internal directories.
Click to hide internal directories.