diff --git a/libs/to-mark/src/renderer.basic.js b/libs/to-mark/src/renderer.basic.js index 28a7ea6d02..ed3e4b5fdb 100644 --- a/libs/to-mark/src/renderer.basic.js +++ b/libs/to-mark/src/renderer.basic.js @@ -28,14 +28,14 @@ var basicRenderer = Renderer.factory({ 'CODE TEXT_NODE': function(node) { return node.nodeValue; }, - 'EM': function(node, subContent) { + 'EM, B': function(node, subContent) { var res; res = '*' + subContent + '*'; return res; }, - 'STRONG': function(node, subContent) { + 'STRONG, S': function(node, subContent) { var res; res = '**' + subContent + '**'; diff --git a/libs/to-mark/test/renderer.basic.spec.js b/libs/to-mark/test/renderer.basic.spec.js index 6ef78eb723..21668afdac 100644 --- a/libs/to-mark/test/renderer.basic.spec.js +++ b/libs/to-mark/test/renderer.basic.spec.js @@ -41,8 +41,9 @@ describe('basicRenderer', function() { }); describe('inline', function() { - it('em', function() { + it('em, b', function() { expect(getMarkdownText('', 'emphasis')).toEqual('*emphasis*'); + expect(getMarkdownText('', 'emphasis')).toEqual('*emphasis*'); }); it('link', function() { @@ -53,8 +54,9 @@ describe('basicRenderer', function() { expect(getMarkdownText('NHNENT')).toEqual('![NHNENT](http://www.nhnent.com/)'); }); - it('strong', function() { + it('strong, s', function() { expect(getMarkdownText('', 'imstrong')).toEqual('**imstrong**'); + expect(getMarkdownText('', 'imstrong')).toEqual('**imstrong**'); }); it('code', function() {