mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
markup/tableofcontents: Add config option for ordered list
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
186a5ebfca
commit
4c804319f6
@@ -58,7 +58,7 @@ And then some.
|
||||
c.Assert(err, qt.IsNil)
|
||||
b, err := conv.Convert(converter.RenderContext{Src: []byte(content), RenderTOC: true})
|
||||
c.Assert(err, qt.IsNil)
|
||||
got := b.(converter.TableOfContentsProvider).TableOfContents().ToHTML(2, 3)
|
||||
got := b.(converter.TableOfContentsProvider).TableOfContents().ToHTML(2, 3, false)
|
||||
c.Assert(got, qt.Equals, `<nav id="TableOfContents">
|
||||
<ul>
|
||||
<li><a href="#first-h2---now-with-typography">First h2—now with typography!</a>
|
||||
|
Reference in New Issue
Block a user