From 5ad963d05acce2fe25c23aef254b0c619e04d394 Mon Sep 17 00:00:00 2001 From: Sungho Kim Date: Wed, 24 Jun 2015 11:28:15 +0900 Subject: [PATCH] b, s tag support resolve #48 --- libs/to-mark/src/renderer.basic.js | 4 ++-- libs/to-mark/test/renderer.basic.spec.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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() {