mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Closes #124
This commit is contained in:
parent
184f8ef622
commit
a302193b06
2 changed files with 17 additions and 1 deletions
|
|
@ -45,3 +45,18 @@
|
||||||
<h2 id="recordsself-zone-params"><code>records(self, zone, params={})</code></h2>
|
<h2 id="recordsself-zone-params"><code>records(self, zone, params={})</code></h2>
|
||||||
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
||||||
|
4
|
||||||
|
//- - - - - - - - -//
|
||||||
|
## Test {#hey .sort,class=fine,class=shell} Doesn't matter
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<h2 id="test-hey-sortclassfineclassshell-doesnt-matter">Test {#hey .sort,class=fine,class=shell} Doesn't matter</h2>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
||||||
|
5
|
||||||
|
//- - - - - - - - -//
|
||||||
|
## Test ## {#hey .sort,class=fine,class=shell} Doesn't matter
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<h2 id="test--hey-sortclassfineclassshell-doesnt-matter">Test ## {#hey .sort,class=fine,class=shell} Doesn't matter</h2>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,8 @@ func (b *atxHeadingParser) Open(parent ast.Node, reader text.Reader, pc Context)
|
||||||
if closureClose > 0 {
|
if closureClose > 0 {
|
||||||
reader.Advance(closureClose)
|
reader.Advance(closureClose)
|
||||||
attrs, ok := ParseAttributes(reader)
|
attrs, ok := ParseAttributes(reader)
|
||||||
parsed = ok
|
rest, _ := reader.PeekLine()
|
||||||
|
parsed = ok && util.IsBlank(rest)
|
||||||
if parsed {
|
if parsed {
|
||||||
for _, attr := range attrs {
|
for _, attr := range attrs {
|
||||||
node.SetAttribute(attr.Name, attr.Value)
|
node.SetAttribute(attr.Name, attr.Value)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue