mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
markup/tableofcontents: Cast Fragments.ToHTML args to int
Closes #13107
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
487bb96474
commit
b529859008
@@ -208,8 +208,8 @@ unsafe = true
|
||||
|
||||
toc, ok := b.(converter.TableOfContentsProvider)
|
||||
c.Assert(ok, qt.Equals, true)
|
||||
tocString := string(toc.TableOfContents().ToHTML(1, 2, false))
|
||||
c.Assert(tocString, qt.Contains, "TableOfContents")
|
||||
tocHTML, _ := toc.TableOfContents().ToHTML(1, 2, false)
|
||||
c.Assert(string(tocHTML), qt.Contains, "TableOfContents")
|
||||
}
|
||||
|
||||
func TestConvertAutoIDAsciiOnly(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user