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
|
|
|
|
2024-03-08 09:15:03 +01:00
|
|
|
"code.ewintr.nl/adoc/document"
|
|
|
|
"code.ewintr.nl/adoc/formatter"
|
|
|
|
"code.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
|
|
|
}
|