diff options
author | Niklas Fasching <[email protected]> | 2020-04-17 16:09:17 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-04-17 22:07:52 +0200 |
commit | 2b28e5a9cb79af2a8d70c80036f52bcf5399b9df (patch) | |
tree | 52326b04a945eca2335101eb9318fde6bf76fff7 /markup/org | |
parent | 102ec2da7adcc4afb7050b17989f0486f8379679 (diff) | |
download | hugo-2b28e5a9cb79af2a8d70c80036f52bcf5399b9df.tar.gz hugo-2b28e5a9cb79af2a8d70c80036f52bcf5399b9df.zip |
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
Diffstat (limited to 'markup/org')
-rw-r--r-- | markup/org/convert.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markup/org/convert.go b/markup/org/convert.go index 2b1fbb73c..7a3ad7076 100644 --- a/markup/org/convert.go +++ b/markup/org/convert.go @@ -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) |