mirror of
https://git.studyfor.work/actions/action-send-mail.git
synced 2026-08-30 11:22:17 -04:00
2095e6ffe3
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
16 lines
402 B
JavaScript
16 lines
402 B
JavaScript
showdown.subParser('makeMarkdown.strikethrough', function (node, globals) {
|
|
'use strict';
|
|
|
|
var txt = '';
|
|
if (node.hasChildNodes()) {
|
|
txt += '~~';
|
|
var children = node.childNodes,
|
|
childrenLength = children.length;
|
|
for (var i = 0; i < childrenLength; ++i) {
|
|
txt += showdown.subParser('makeMarkdown.node')(children[i], globals);
|
|
}
|
|
txt += '~~';
|
|
}
|
|
return txt;
|
|
});
|