Skip to content

Commit

Permalink
🎨 Vditor 支持 Vanessa219/vditor#107
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 5, 2020
1 parent 0beb2f9 commit de8bfa2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions delimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func (t *Tree) processEmphasis(stackBottom *delimiter, ctx *InlineContext) {
openerInl = opener.node
closerInl = closer.node

if t.context.option.GFMStrikethrough && itemTilde == closercc && opener.num != closer.num {
break
}

// remove used delimiters from stack elts and inlines
opener.num -= useDelims
closer.num -= useDelims
Expand Down
Loading

0 comments on commit de8bfa2

Please sign in to comment.