mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
content adapter: Handle <!--more--> separator in content.value
Closes #12556
This commit is contained in:
@@ -101,3 +101,14 @@ func BenchmarkHasShortcode(b *testing.B) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestSummaryDividerStartingFromMain(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
|
||||
input := `aaa <!--more--> bbb`
|
||||
items, err := collectStringMain(input)
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
||||
c.Assert(items, qt.HasLen, 4)
|
||||
c.Assert(items[1].Type, qt.Equals, TypeLeadSummaryDivider)
|
||||
}
|
||||
|
Reference in New Issue
Block a user