aboutsummaryrefslogtreecommitdiff
path: root/hasp
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-08-01 13:50:36 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-08-01 14:02:03 +0200
commit030a23c1a22eb51815c277636613f1808dc6be81 (patch)
tree6c9411642c41345d782a2e06dce8e8a609d747be /hasp
parent0d37e5bc8a5f1af3e264b029879fd79da6bd964c (diff)
downloadhaven-030a23c1a22eb51815c277636613f1808dc6be81.tar.gz
haven-030a23c1a22eb51815c277636613f1808dc6be81.tar.xz
haven-030a23c1a22eb51815c277636613f1808dc6be81.zip
hasp: bump libasciidoc and other dependencies
Diffstat (limited to 'hasp')
-rw-r--r--hasp/main.go8
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>")