Skip to content

Commit 9b0f26b

Browse files
committed
Strikethrough
1 parent 739dcd8 commit 9b0f26b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"clean": "node_modules/.bin/rimraf lib",
88
"build": "npm run clean && npm run build:js",
9-
"build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='__test__/*' src",
9+
"build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src",
1010
"prepublish": "npm run build",
1111
"start:dev": "node_modules/.bin/babel-node ./demo/server.js",
1212
"start": "npm run start:dev",

src/__test__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
// import { shallow } from 'enzyme';
33
// import { expect } from 'chai';
44

5-
describe('checkbox', () => {
5+
describe('draft-js-markdown-shortcuts-plugin', () => {
66
it('is pending');
77
});

src/modifiers/handleInlineStyle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const inlineMatchers = {
1111
],
1212
CODE: [
1313
/`([^`]+)`/g
14+
],
15+
STRIKETHROUGH: [
16+
/~~([^(?:~~)]+)~~/g
1417
]
1518
};
1619

0 commit comments

Comments
 (0)