From 91b1120c4a4a50cd3a561711583468657a192ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 17 Aug 2020 00:56:18 +0200 Subject: hswg: bump libasciidoc to a dev version We want: - curved quotation marks - image alignment/float setting --- hswg/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'hswg') diff --git a/hswg/main.go b/hswg/main.go index dfc6ed3..cb7f053 100644 --- a/hswg/main.go +++ b/hswg/main.go @@ -88,7 +88,7 @@ func Render(doc io.Reader, config configuration.Configuration) ( // io.Copy(os.Stdout, pr) // return - meta, err = libasciidoc.ConvertToHTML(pr, html, config) + meta, err = libasciidoc.Convert(pr, html, config) if err != nil { // Fallback: output all the text sanitized for direct inclusion. html.Reset() @@ -143,7 +143,9 @@ func expand(m *map[string]*entry, name string, chunk []byte) []byte { } func singleFile() { - html, meta, err := Render(os.Stdin, configuration.NewConfiguration()) + html, meta, err := Render(os.Stdin, configuration.NewConfiguration( + configuration.WithBackEnd("xhtml5"), + )) if err != nil { log.Println(err) } else if meta.Title != "" { @@ -200,6 +202,7 @@ func main() { var html *bytes.Buffer if html, e.metadata, err = Render(f, configuration.NewConfiguration( + configuration.WithBackEnd("xhtml5"), configuration.WithFilename(e.path), configuration.WithLastUpdated(e.mtime), )); err != nil { -- cgit v1.2.3