summaryrefslogtreecommitdiff
path: root/js/lib/blocks.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-18 10:41:54 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-18 10:47:08 -0800
commit14b997d9350b3ee3f6d67fb12b470bf406d4a31b (patch)
treeb9a1416f18c27458849d48b8769c53100f55d008 /js/lib/blocks.js
parentb34e19cd2f32342fafd6ae76de4e537240784f71 (diff)
Changed rule for `_` emphasis and strong emphasis.
To prevent intra-word emphasis, we used to check to see if the delimiter was followed/preceded by an ASCII alphanumeric. We now do something more elegant: whereas an opening `*` must be left-flanking, an opening `_` must be left-flanking *and not right-flanking*. And so on for the other cases. All the original tests passed except some tests with Russian text with internal `_`, which formerly created emphasis but no longer do with the new rule. These tests have been adjusted. A few new test cases have been added to illustrate the rule. The C and JS implementations have both been updated.
Diffstat (limited to 'js/lib/blocks.js')
0 files changed, 0 insertions, 0 deletions