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
This commit is contained in:
Niklas Fasching
2023-03-12 11:31:05 +01:00
committed by Bjørn Erik Pedersen
parent e7148f335f
commit 1c841ec914
3 changed files with 4 additions and 4 deletions

View 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)