]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
deps: Update go-org to v1.6.6
authorNiklas Fasching <niklas.fasching@gmail.com>
Sun, 12 Mar 2023 10:31:05 +0000 (11:31 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 12 Mar 2023 11:38:12 +0000 (12:38 +0100)
among other things, fixes a race condition in html writer and bug preventing
explicit line breaks immediately following emphasis

go.mod
go.sum
markup/org/convert.go

diff --git a/go.mod b/go.mod
index f39d424f32f9cba8cb98667666dc62f4574ff3f7..394b18cc1048f7e4eeeca7e7a8055294072a8145 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -44,7 +44,7 @@ require (
        github.com/mitchellh/hashstructure v1.1.0
        github.com/mitchellh/mapstructure v1.5.0
        github.com/muesli/smartcrop v0.3.0
-       github.com/niklasfasching/go-org v1.6.5
+       github.com/niklasfasching/go-org v1.6.6
        github.com/olekukonko/tablewriter v0.0.5
        github.com/pelletier/go-toml/v2 v2.0.6
        github.com/rogpeppe/go-internal v1.9.0
diff --git a/go.sum b/go.sum
index 212681481d30d823a2f5663c540175794f1a37ff..017b1de707377dda48cacf673a41a4097dc6b6ae 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -473,8 +473,8 @@ github.com/muesli/smartcrop v0.3.0/go.mod h1:i2fCI/UorTfgEpPPLWiFBv4pye+YAG78Rwc
 github.com/neurosnap/sentences v1.0.6/go.mod h1:pg1IapvYpWCJJm/Etxeh0+gtMf1rI1STY9S7eUCPbDc=
 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
-github.com/niklasfasching/go-org v1.6.5 h1:5YAIqNTdl6lAOb7lD2AyQ1RuFGPVrAKvUexphk8PGbo=
-github.com/niklasfasching/go-org v1.6.5/go.mod h1:ybv0eGDnxylFUfFE+ySaQc734j/L3+/ChKZ/h63a2wM=
+github.com/niklasfasching/go-org v1.6.6 h1:U6+mJ80p3weR4oP+Z+Pb2EVkSbt1MUwweBbUcF1hVqQ=
+github.com/niklasfasching/go-org v1.6.6/go.mod h1:o3pMQpO9n6RNBXz2Oc2DiRkaVwjns0JElyKiG7yXwA4=
 github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
 github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
 github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU=
index a08453e94f20b33ad9733b9d2b4d5860ce34bc10..802b9aa5a226c1cfb4458dca8d68f86a6a8a8da4 100644 (file)
@@ -51,7 +51,7 @@ func (c *orgConverter) Convert(ctx converter.RenderContext) (converter.ResultRen
                return afero.ReadFile(c.cfg.ContentFs, filename)
        }
        writer := org.NewHTMLWriter()
-       writer.HighlightCodeBlock = func(source, lang string, inline bool) string {
+       writer.HighlightCodeBlock = func(source, lang string, inline bool, params map[string]string) string {
                highlightedSource, err := c.cfg.Highlight(source, lang, "")
                if err != nil {
                        logger.Errorf("Could not highlight source as lang %s. Using raw source.", lang)