From 184f8ef62242381890547fe7e844aaf255ad5257 Mon Sep 17 00:00:00 2001 From: yuin Date: Thu, 16 Apr 2020 11:34:53 +0900 Subject: [PATCH] Fixes #123 --- _test/options.txt | 8 ++++++++ parser/atx_heading.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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) }