|
@ -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; |
|
|