diff --git a/lib/parser_inline.js b/lib/parser_inline.js
index 58b85a4..71f6b09 100644
--- a/lib/parser_inline.js
+++ b/lib/parser_inline.js
@@ -17,7 +17,7 @@ var _rules = [
[ 'newline', require('./rules_inline/newline') ],
[ 'escape', require('./rules_inline/escape') ],
[ 'backtick', require('./rules_inline/backtick') ],
- [ 'del', require('./rules_inline/del') ],
+ [ 'strikethrough', require('./rules_inline/strikethrough') ],
[ 'emphasis', require('./rules_inline/emphasis') ],
[ 'link', require('./rules_inline/link') ],
[ 'image', require('./rules_inline/image') ],
diff --git a/lib/renderer.js b/lib/renderer.js
index 0ee5c0e..8793942 100644
--- a/lib/renderer.js
+++ b/lib/renderer.js
@@ -201,11 +201,11 @@ rules.em_close = function (/* tokens, idx, options, env */) {
};
-rules.del_open = function (/* tokens, idx, options, env */) {
- return '';
+rules.s_open = function (/* tokens, idx, options, env */) {
+ return '';
+rules.s_close = function (/* tokens, idx, options, env */) {
+ return '';
};
diff --git a/lib/rules_inline/del.js b/lib/rules_inline/strikethrough.js
similarity index 93%
rename from lib/rules_inline/del.js
rename to lib/rules_inline/strikethrough.js
index 4e35a08..13dad16 100644
--- a/lib/rules_inline/del.js
+++ b/lib/rules_inline/strikethrough.js
@@ -29,7 +29,8 @@ function scanDelims(state, start) {
};
}
-module.exports = function(state, silent) {
+
+module.exports = function strikethrough(state, silent) {
var startCount,
count,
tagCount,
@@ -91,9 +92,9 @@ module.exports = function(state, silent) {
state.pos = start + 2;
// Earlier we checked !silent, but this implementation does not need it
- state.push({ type: 'del_open', level: state.level++ });
+ state.push({ type: 's_open', level: state.level++ });
state.md.inline.tokenize(state);
- state.push({ type: 'del_close', level: --state.level });
+ state.push({ type: 's_close', level: --state.level });
state.pos = state.posMax + 2;
state.posMax = max;
diff --git a/test/fixtures/markdown-it/del.txt b/test/fixtures/markdown-it/strikethrough.txt
similarity index 75%
rename from test/fixtures/markdown-it/del.txt
rename to test/fixtures/markdown-it/strikethrough.txt
index 65e7933..83b3617 100644
--- a/test/fixtures/markdown-it/del.txt
+++ b/test/fixtures/markdown-it/strikethrough.txt
@@ -1,32 +1,32 @@
.
~~Strikeout~~
.
-';
};
-rules.del_close = function (/* tokens, idx, options, env */) {
- return '
Strikeout
Strikeout
x foo bar
x foo bar
x foo bar
x foo bar
x foo
x foo
x foo
x foo
~~test~~
-**test**
**test**
foo bar baz
foo bar baz
f o o b a r
f o o b a r