hugolib: Fix shortcode version=1 logic

Fixes #5831
This commit is contained in:
Bjørn Erik Pedersen 2019-04-24 14:05:37 +02:00
parent 69a56420ae
commit 33c738116c
3 changed files with 19 additions and 5 deletions

View file

@ -201,6 +201,10 @@ type shortcode struct {
length int // the length in bytes in the source file
}
func (s shortcode) insertPlaceholder() bool {
return !s.doMarkup || s.info.Config.Version == 1
}
func (s shortcode) innerString() string {
var sb strings.Builder