diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-08-17 00:56:18 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-08-17 04:40:20 +0200 |
commit | 91b1120c4a4a50cd3a561711583468657a192ffb (patch) | |
tree | 43bfbad8456aa4c402741f0e3e8e3c0f049a0a30 /hswg/main.go | |
parent | f7f892fb59f8e728ce8f67eec0094b839ecf8079 (diff) | |
download | haven-91b1120c4a4a50cd3a561711583468657a192ffb.tar.gz haven-91b1120c4a4a50cd3a561711583468657a192ffb.tar.xz haven-91b1120c4a4a50cd3a561711583468657a192ffb.zip |
hswg: bump libasciidoc to a dev version
We want:
- curved quotation marks
- image alignment/float setting
Diffstat (limited to 'hswg/main.go')
-rw-r--r-- | hswg/main.go | 7 |
1 files changed, 5 insertions, 2 deletions
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 { |