diff options
Diffstat (limited to 'hasp/main.go')
-rw-r--r-- | hasp/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hasp/main.go b/hasp/main.go index e19d48a..dd2ba7a 100644 --- a/hasp/main.go +++ b/hasp/main.go @@ -4,7 +4,6 @@ package main import ( "bytes" - "context" "encoding/xml" "io" "io/ioutil" @@ -14,7 +13,7 @@ import ( "unicode/utf8" "github.com/bytesparadise/libasciidoc" - "github.com/bytesparadise/libasciidoc/pkg/renderer" + "github.com/bytesparadise/libasciidoc/pkg/configuration" ) // isTitle returns the title level if the lines seem to form a title, @@ -77,8 +76,9 @@ func main() { // io.Copy(os.Stdout, pr) // return - _, err = libasciidoc.ConvertToHTML(context.Background(), pr, os.Stdout, - renderer.IncludeHeaderFooter(true)) + config := configuration.NewConfiguration( + configuration.WithHeaderFooter(true)) + _, err = libasciidoc.ConvertToHTML(pr, os.Stdout, config) if err != nil { // Fallback: output all the text sanitized for direct inclusion. os.Stdout.WriteString("<pre>") |