Skip to content

Commit

Permalink
Fix #323
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Sep 19, 2022
1 parent 20df169 commit a3630e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions _test/extra.txt
Expand Up @@ -728,3 +728,16 @@ a <!-- b -->
<p>This is a quote.</p>
</blockquote>
//= = = = = = = = = = = = = = = = = = = = = = = =//

57: Tabbed fenced code block within a list
//- - - - - - - - -//
1.
```
```
//- - - - - - - - -//
<ol>
<li>
<pre><code></code></pre>
</li>
</ol>
//= = = = = = = = = = = = = = = = = = = = = = = =//
2 changes: 1 addition & 1 deletion parser/fcode_block.go
Expand Up @@ -83,7 +83,7 @@ func (b *fencedCodeBlockParser) Continue(node ast.Node, reader text.Reader, pc C
if line[len(line)-1] != '\n' {
newline = 0
}
reader.Advance(segment.Stop - segment.Start - newline - segment.Padding)
reader.Advance(segment.Stop - segment.Start - newline + segment.Padding)
return Close
}
}
Expand Down

0 comments on commit a3630e3

Please sign in to comment.