markup/tableofcontents: Cast Fragments.ToHTML args to int

Closes #13107
This commit is contained in:
Joe Mooring
2024-12-04 09:21:21 -08:00
committed by Bjørn Erik Pedersen
parent 487bb96474
commit b529859008
5 changed files with 120 additions and 22 deletions

View File

@@ -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) {