mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Fix #245 - 1
This commit is contained in:
parent
aae0486a04
commit
8174177880
2 changed files with 11 additions and 1 deletions
|
|
@ -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>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue