summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Fasching <niklas.fasching@gmail.com>2023-03-12 11:31:05 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-03-12 12:38:12 +0100
commit1c841ec914aa12f6cd354ddf929ac76c5397236e (patch)
tree320fec931fdbbb44466af1b905313eaf592edf00
parente7148f335fabf0170b8158d39cd2ea95bc04fd7e (diff)
deps: Update go-org to v1.6.6
among other things, fixes a race condition in html writer and bug preventing explicit line breaks immediately following emphasis
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--markup/org/convert.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index f39d424f3..394b18cc1 100644
--- 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 212681481..017b1de70 100644
--- 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=
diff --git a/markup/org/convert.go b/markup/org/convert.go
index a08453e94..802b9aa5a 100644
--- a/markup/org/convert.go
+++ b/markup/org/convert.go
@@ -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)