Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public Node unmatchedDelimiterNode(InlineParser inlineParser, DelimiterRun delim
public int getDelimiterUse(DelimiterRun opener, DelimiterRun closer) {
// "multiple of 3" rule for internal delimiter runs
if ((opener.canClose() || closer.canOpen()) && (opener.length() + closer.length()) % 3 == 0) {
if (opener.length() % 3 == 0 && closer.length() % 3 == 0) {
return this.multipleUse; // if they are each a multiple of 3, then emphasis can be created
}
return 0;
}

Expand Down