Document public types and methods

This commit is contained in:
Christian Muehlhaeuser
2019-12-25 05:19:33 +01:00
parent 9805957441
commit a1da1963cb
14 changed files with 24 additions and 1 deletions
+2 -1
View File
@@ -18,11 +18,12 @@ type Options struct {
Styles StyleConfig
}
// ANSIRenderer renders markdown content as ANSI escaped sequences.
type ANSIRenderer struct {
context RenderContext
}
// NewANSIRenderer returns a new ANSIRenderer with style and options set.
// NewRenderer returns a new ANSIRenderer with style and options set.
func NewRenderer(options Options) *ANSIRenderer {
return &ANSIRenderer{
context: NewRenderContext(options),