diff --git a/pkg/parser/table_of_contents_test.go b/pkg/parser/table_of_contents_test.go index 6b01c688..ea23f08e 100644 --- a/pkg/parser/table_of_contents_test.go +++ b/pkg/parser/table_of_contents_test.go @@ -383,7 +383,15 @@ var _ = Describe("tables of contents", func() { // same titles for all tests in this context section1Title := []interface{}{ &types.StringElement{ - Content: "Section 1", + Content: "Section ", + }, + &types.QuotedText{ + Kind: types.SingleQuoteBold, + Elements: []interface{}{ + &types.StringElement{ + Content: "1", + }, + }, }, } section2Title := []interface{}{ @@ -398,7 +406,7 @@ var _ = Describe("tables of contents", func() { a preamble -== Section 1 +== Section *1* == Section 2` expected := &types.Document{ @@ -472,7 +480,7 @@ a preamble a preamble -== Section 1 +== Section *1* == Section 2` expected := &types.Document{ @@ -555,7 +563,7 @@ block a preamble -== Section 1 +== Section *1* == Section 2` expected := &types.Document{ @@ -627,7 +635,7 @@ a preamble :toc: :toc-title:

Table of Contents

-== Section 1 +== Section *1* == Section 2 ` @@ -712,7 +720,7 @@ a preamble :toc: :toc-title: pass:[

Table of Contents

] -== Section 1 +== Section *1* == Section 2 ` diff --git a/pkg/renderer/sgml/html5/footnote_reference_test.go b/pkg/renderer/sgml/html5/footnote_reference_test.go index ffad677b..7bab5554 100644 --- a/pkg/renderer/sgml/html5/footnote_reference_test.go +++ b/pkg/renderer/sgml/html5/footnote_reference_test.go @@ -128,10 +128,11 @@ a preamble with a footnote:[foo] a paragraph with another footnote:[baz]` // NOTE: differs from asciidoc in the section and footnote numbering (which also impacts the 'footnotes' portion at the end of the doc) + // also, differs in the rendering of the footnote reference in the table of contents expected := `
Table of Contents
diff --git a/pkg/renderer/sgml/html5/table_of_contents_test.go b/pkg/renderer/sgml/html5/table_of_contents_test.go index c929c177..22f3604e 100644 --- a/pkg/renderer/sgml/html5/table_of_contents_test.go +++ b/pkg/renderer/sgml/html5/table_of_contents_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/gomega" ) -var _ = Describe("table of contents", func() { +var _ = Describe("tables of contents", func() { Context("in document with header", func() { @@ -21,9 +21,9 @@ A preamble... == Section A -=== Section A.a +=== Section *A.a* -=== Section A.b +=== Section _A.b_ ==== Section that shall not be in ToC @@ -38,8 +38,8 @@ A preamble...