From 030a23c1a22eb51815c277636613f1808dc6be81 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 1 Aug 2020 13:50:36 +0200 Subject: hasp: bump libasciidoc and other dependencies --- hasp/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hasp') 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("
") -- cgit v1.2.3-70-g09d2