diff options
Diffstat (limited to 'hswg')
-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 { |