mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Issue #4: Fix invalid leading spaces with attributes
This commit is contained in:
parent
e59897f8e5
commit
6703518300
1 changed files with 3 additions and 1 deletions
|
|
@ -94,7 +94,9 @@ func (b *atxHeadingParser) Open(parent ast.Node, reader text.Reader, pc Context)
|
|||
node := ast.NewHeading(level)
|
||||
parsed := false
|
||||
if b.Attribute { // handles special case like ### heading ### {#id}
|
||||
if line[start] == '#' {
|
||||
start--
|
||||
}
|
||||
closureOpen := -1
|
||||
closureClose := -1
|
||||
for i := start; i < stop; {
|
||||
|
|
|
|||
Loading…
Reference in a new issue