Skip to content

Commit

Permalink
Updated dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Apr 29, 2015
1 parent cbb8f32 commit 2a880d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/commonmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3849,8 +3849,10 @@ var scanDelims = function(cc) {
!(reWhitespaceChar.test(char_after)) &&
!(rePunctuation.test(char_after)));
if (cc === C_UNDERSCORE) {
can_open = left_flanking && !right_flanking;
can_close = right_flanking && !left_flanking;
can_open = left_flanking &&
(!right_flanking || rePunctuation.test(char_before));
can_close = right_flanking &&
(!left_flanking || rePunctuation.test(char_after));
} else {
can_open = left_flanking;
can_close = right_flanking;
Expand Down

0 comments on commit 2a880d9

Please sign in to comment.