Skip to content

Commit

Permalink
fixup! Do not include whitespace when applying inline markdown styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Robertson committed Jul 16, 2016
1 parent 88fab8c commit e2d54c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stateToMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class MarkupGenerator {
content = content.replace(STRIP_WHITESPACE, '$1~~$2~~$3');
}
if (style.has(CODE)) {
content = (blockType === BLOCK_TYPE.CODE) ? content : '`' + content + '`';
content = (blockType === BLOCK_TYPE.CODE) ? content : content.replace(STRIP_WHITESPACE, '$1`$2`$3');
}
return content;
}).join('');
Expand Down

0 comments on commit e2d54c6

Please sign in to comment.