Browse Source

Fixed emphasis closing token marker, closes #69

pull/82/head
Vitaly Puzrin 10 years ago
parent
commit
73599e022b
  1. 4
      lib/rules_inline/emphasis.js

4
lib/rules_inline/emphasis.js

@ -164,11 +164,11 @@ module.exports = function emphasis(state, silent) {
if (count % 2) { if (count % 2) {
token = state.push('em_close', 'em', -1); token = state.push('em_close', 'em', -1);
token.markup = String.fromCharCode(marker) + String.fromCharCode(marker); token.markup = String.fromCharCode(marker);
} }
for (count = startCount; count > 1; count -= 2) { for (count = startCount; count > 1; count -= 2) {
token = state.push('strong_close', 'strong', -1); token = state.push('strong_close', 'strong', -1);
token.markup = String.fromCharCode(marker); token.markup = String.fromCharCode(marker) + String.fromCharCode(marker);
} }
state.pos = state.posMax + startCount; state.pos = state.posMax + startCount;

Loading…
Cancel
Save