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:
Niklas Fasching
2020-04-17 16:09:17 +02:00
committed by Bjørn Erik Pedersen
parent 102ec2da7a
commit 2b28e5a9cb
3 changed files with 4 additions and 4 deletions

View File

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