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: