Documentation ¶
Overview ¶
Package renderer renders the given AST to certain formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(r *Renderer)
func WithSoftWraps ¶
func WithSoftWraps() Option
WithSoftWraps allows you to wrap lines even on soft line breaks.
func WithUnderlineHeadings ¶
func WithUnderlineHeadings() Option
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer allows to render markdown AST into markdown bytes in consistent format. Render is reusable across Renders, it holds configuration only.
func NewRenderer ¶
func NewRenderer() *Renderer
func (*Renderer) AddMarkdownOptions ¶
func (*Renderer) AddOptions ¶
Click to show internal directories.
Click to hide internal directories.