content adapter: Fix issue with content starting out with a shortcode

Fixes #12544
This commit is contained in:
Bjørn Erik Pedersen
2024-05-29 12:59:57 +02:00
parent 7f3061723e
commit 519f41dbd7
4 changed files with 43 additions and 10 deletions

View File

@@ -62,7 +62,9 @@ func (l *pageLexer) Input() []byte {
return l.input
}
type Config struct{}
type Config struct {
NoFrontMatter bool
}
// note: the input position here is normally 0 (start), but
// can be set if position of first shortcode is known