Documentation ¶
Index ¶
- Variables
- type Config
- type Logger
- 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) DocumentMatter(w io.Writer, node *ast.DocumentMatter, entering bool)
- 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) RenderFooter(w io.Writer, _ ast.Node)
- func (r *Renderer) RenderNode(w io.Writer, node ast.Node, entering bool) ast.WalkStatus
- func (r *Renderer) RenderPage(mdFilename string) ([]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 Renderer ¶
func (*Renderer) DocumentMatter ¶
DocumentMatter just copies parent method using child's `state` property
func (*Renderer) Link ¶
Link converts .md links to .html links and adds starting slash to local pages.
func (*Renderer) RenderFooter ¶
RenderFooter writes HTML document footer.
func (*Renderer) RenderNode ¶
RenderNode process images, links, and code blocks differently than default renderer
Click to show internal directories.
Click to hide internal directories.