mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
deps: Update go-org to v1.1.0
- inline source blocks and exports - result blocks and source block :exports parameter - fix: html escaping in example blocks - #+LINK based links
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
102ec2da7a
commit
2b28e5a9cb
@@ -52,7 +52,7 @@ func (c *orgConverter) Convert(ctx converter.RenderContext) (converter.Result, e
|
||||
return afero.ReadFile(c.cfg.ContentFs, filename)
|
||||
}
|
||||
writer := org.NewHTMLWriter()
|
||||
writer.HighlightCodeBlock = func(source, lang string) string {
|
||||
writer.HighlightCodeBlock = func(source, lang string, inline bool) string {
|
||||
highlightedSource, err := c.cfg.Highlight(source, lang, "")
|
||||
if err != nil {
|
||||
logger.ERROR.Printf("Could not highlight source as lang %s. Using raw source.", lang)
|
||||
|
Reference in New Issue
Block a user