mirror of
https://git.studyfor.work/actions/action-send-mail.git
synced 2026-08-31 20:02:08 -04:00
Add markdown format support (#25)
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
});
|
||||
Reference in New Issue
Block a user