mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
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:
committed by
Bjørn Erik Pedersen
parent
e7148f335f
commit
1c841ec914
@@ -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)
|
||||
|
Reference in New Issue
Block a user