diff options
author | Daniel Tang <tangd@google.com> | 2019-12-10 12:37:52 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-10 23:48:44 +0100 |
commit | c5f2f5837fdf6a30c7b28e8368033623b74a30a0 (patch) | |
tree | c2b79db1d9c7450ee2b2f697f6bfd1aa74cd67a9 /markup/goldmark/toc_test.go | |
parent | 0efb00c2a86ec3f52000a643f26f54bb2a9dfbd6 (diff) |
markup: Add typographic chars from goldmark to toc
Fixes #6592
Diffstat (limited to 'markup/goldmark/toc_test.go')
-rw-r--r-- | markup/goldmark/toc_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markup/goldmark/toc_test.go b/markup/goldmark/toc_test.go index f2e15f593..d3a1613cf 100644 --- a/markup/goldmark/toc_test.go +++ b/markup/goldmark/toc_test.go @@ -32,7 +32,7 @@ func TestToc(t *testing.T) { content := ` # Header 1 -## First h2 +## First h2---now with typography! Some text. @@ -61,7 +61,7 @@ And then some. got := b.(converter.TableOfContentsProvider).TableOfContents().ToHTML(2, 3) c.Assert(got, qt.Equals, `<nav id="TableOfContents"> <ul> - <li><a href="#first-h2">First h2</a> + <li><a href="#first-h2---now-with-typography">First h2—now with typography!</a> <ul> <li><a href="#h3">H3</a></li> </ul> |