adoc/adoc.go

30 lines
489 B
Go
Raw Normal View History

2022-03-10 06:10:36 +01:00
package adoc
import (
2022-06-11 09:30:22 +02:00
"io"
2022-03-15 15:16:15 +01:00
2022-06-11 09:30:22 +02:00
"ewintr.nl/adoc/document"
"ewintr.nl/adoc/formatter"
"ewintr.nl/adoc/parser"
2022-03-10 06:10:36 +01:00
)
2022-06-11 09:30:22 +02:00
func NewDocument() *document.Document {
return document.New()
2022-03-10 06:10:36 +01:00
}
2022-06-11 09:30:22 +02:00
func NewParser(reader io.Reader) *parser.Parser {
return parser.New(reader)
}
func NewTextFormatter() *formatter.Text {
return formatter.NewText()
}
func NewAsciiDocFormatter() *formatter.AsciiDoc {
return formatter.NewAsciiDoc()
}
func NewHTMLFormatter() *formatter.HTML {
return formatter.NewHTML()
2022-03-10 06:10:36 +01:00
}