Skip to content

Commit

Permalink
fix(parser/renderer): inline anchors and custom ID in sections (#904)
Browse files Browse the repository at this point in the history
clarify the use of inline anchors vs custom IDs

fixes #903

Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon authored Jan 2, 2022
1 parent 7c39c32 commit 9972b1b
Show file tree
Hide file tree
Showing 12 changed files with 8,661 additions and 8,408 deletions.
1 change: 0 additions & 1 deletion pkg/parser/attributes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ var _ = DescribeTable("valid block attributes",
types.Attributes{
types.AttrPositional1: nil,
types.AttrPositional2: nil,
// types.AttrPositional3: nil,
},
),
// quoted values
Expand Down
1 change: 0 additions & 1 deletion pkg/parser/document_processing_filter_elements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ var _ = Describe("element filters", func() {
Kind: types.Listing,
Elements: []interface{}{
&types.StringElement{},
// &types.BlankLine{},
&types.StringElement{},
},
},
Expand Down
3 changes: 0 additions & 3 deletions pkg/parser/icon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ var _ = Describe("icons", func() {
&types.Icon{
Class: "note",
},
// &types.StringElement{
// Content: " \t\t ",
// },
},
},
},
Expand Down
24 changes: 0 additions & 24 deletions pkg/parser/mixed_lists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1281,9 +1281,6 @@ a paragraph
},
},
},
// &types.SingleLineComment{
// Content: " -",
// },
},
},
&types.OrderedListElement{
Expand Down Expand Up @@ -1326,15 +1323,6 @@ a paragraph
},
},
},
// &types.SingleLineComment{
// Content: " -",
// },
// &types.SingleLineComment{
// Content: " -",
// },
// &types.SingleLineComment{
// Content: " -",
// },
},
},
&types.OrderedListElement{
Expand Down Expand Up @@ -1380,9 +1368,6 @@ a paragraph
},
},
},
// &types.SingleLineComment{
// Content: " -",
// },
&types.List{
Kind: types.OrderedListKind,
Elements: []types.ListElement{
Expand Down Expand Up @@ -1431,15 +1416,6 @@ a paragraph
},
},
},
// &types.SingleLineComment{
// Content: " -",
// },
// &types.SingleLineComment{
// Content: " -",
// },
// &types.SingleLineComment{
// Content: " -",
// },
&types.List{
Kind: types.OrderedListKind,
Elements: []types.ListElement{
Expand Down
Loading

0 comments on commit 9972b1b

Please sign in to comment.