This commit is contained in:
yuin 2021-09-11 09:44:22 +09:00
parent aae0486a04
commit 8174177880
2 changed files with 11 additions and 1 deletions

View file

@ -344,6 +344,7 @@ C
</li> </li>
</ul> </ul>
//= = = = = = = = = = = = = = = = = = = = = = = =// //= = = = = = = = = = = = = = = = = = = = = = = =//
22: Indented code block within list can start with tab 22: Indented code block within list can start with tab
//- - - - - - - - -// //- - - - - - - - -//
- List - List
@ -365,3 +366,11 @@ C
</ul> </ul>
<p>a</p> <p>a</p>
//= = = = = = = = = = = = = = = = = = = = = = = =// //= = = = = = = = = = = = = = = = = = = = = = = =//
23: Emphasis corner case(yuin/goldmark#245)
//- - - - - - - - -//
a* b c d *e*
//- - - - - - - - -//
<p>a* b c d <em>e</em></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

View file

@ -200,10 +200,11 @@ func ProcessDelimiters(bottom ast.Node, pc Context) {
} }
} }
if !found { if !found {
next := closer.NextDelimiter
if !maybeOpener && !closer.CanOpen { if !maybeOpener && !closer.CanOpen {
pc.RemoveDelimiter(closer) pc.RemoveDelimiter(closer)
} }
closer = closer.NextDelimiter closer = next
continue continue
} }
opener.ConsumeCharacters(consume) opener.ConsumeCharacters(consume)