Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer provides functionality to parse and render rnzml to HTML
func (*Renderer) Render ¶
Render iterates over in line by line and either renders a text block or a code block
Example ¶
r := NewRenderer()
out := &strings.Builder{}
_ = r.Render(strings.NewReader("*Hello*, `world`"), out)
fmt.Print(out.String())
Output: <p><strong>Hello</strong>, <code>world</code> </p>
Click to show internal directories.
Click to hide internal directories.