hswg: bump libasciidoc to a dev version

We want:
 - curved quotation marks
 - image alignment/float setting
This commit is contained in:
2020-08-17 00:56:18 +02:00
parent f7f892fb59
commit 91b1120c4a
3 changed files with 149 additions and 34 deletions

View File

@@ -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 {