mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-20 16:22:49 +00:00
fix compile error from rebase and improve error handling
This commit is contained in:
parent
f1b1e5f41b
commit
aaed290b02
|
@ -57,7 +57,11 @@ type pandocConverter struct {
|
|||
}
|
||||
|
||||
func (c *pandocConverter) Convert(ctx converter.RenderContext) (converter.Result, error) {
|
||||
content, toc, err := c.extractTOC(c.getPandocContent(ctx.Src, c.ctx))
|
||||
contentWithToc, err := c.getPandocContent(ctx.Src, c.ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
content, toc, err := c.extractTOC(contentWithToc)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue