diff --git a/_test/options.txt b/_test/options.txt index 377b0d0..a90449f 100644 --- a/_test/options.txt +++ b/_test/options.txt @@ -37,3 +37,11 @@

FOO

//= = = = = = = = = = = = = = = = = = = = = = = =// + +3 +//- - - - - - - - -// +## `records(self, zone, params={})` +//- - - - - - - - -// +

records(self, zone, params={})

+//= = = = = = = = = = = = = = = = = = = = = = = =// + diff --git a/parser/atx_heading.go b/parser/atx_heading.go index 0b63fab..a631e0b 100644 --- a/parser/atx_heading.go +++ b/parser/atx_heading.go @@ -232,7 +232,7 @@ func parseLastLineAttributes(node ast.Node, reader text.Reader, pc Context) { } lr.Advance(1) } - if ok && util.IsBlank(line[end.Stop:]) { + if ok && util.IsBlank(line[end.Start:]) { for _, attr := range attrs { node.SetAttribute(attr.Name, attr.Value) }