Skip to content

Commit

Permalink
Fixes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Apr 16, 2020
1 parent 1f967da commit 184f8ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _test/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@
<h1 id="heading"></h1>
<h1 id="foo">FOO</h1>
//= = = = = = = = = = = = = = = = = = = = = = = =//

3
//- - - - - - - - -//
## `records(self, zone, params={})`
//- - - - - - - - -//
<h2 id="recordsself-zone-params"><code>records(self, zone, params={})</code></h2>
//= = = = = = = = = = = = = = = = = = = = = = = =//

2 changes: 1 addition & 1 deletion parser/atx_heading.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 184f8ef

Please sign in to comment.