Documentation
¶
Overview ¶
Package html provides an HTML renderer for Markdown AST nodes. It uses the ast.Walk function to traverse the tree and render each node.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderString ¶
RenderString renders the AST to a string.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer converts Markdown AST nodes to HTML.
func NewRenderer ¶
NewRenderer creates a new HTML renderer that writes to w.
func (*Renderer) Render ¶
Render walks the AST and writes HTML to the underlying writer. Returns any error encountered during rendering.
func (*Renderer) WithIndent ¶
WithIndent enables indented output for readability.
Click to show internal directories.
Click to hide internal directories.