This commit is contained in:
yuin 2022-09-19 20:39:17 +09:00
parent 20df1691ad
commit a3630e3073
2 changed files with 14 additions and 1 deletions

View file

@ -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>
//= = = = = = = = = = = = = = = = = = = = = = = =//

View file

@ -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
}
}