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
Adjusted the use of delimiters to allow the triple case to work per C…
…ommonMark. Resolves #557
  • Loading branch information
David Waltermire committed Jun 23, 2023
commit d8ef7a9f1f89c676e91955bf35a3b5191b795b41
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