Merge pull request #464 from BelleNottelling/strikethrough

Add / Fix strikethrough support
This commit is contained in:
Belle Aerni authored and GitHub committed 2022-11-16 21:56:27 -08:00
commit dc7532c038
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -306,6 +306,7 @@ function twig_markdown_filter(Twig\Environment $env, $value)
return $match[0];
}, $result);
$result = preg_replace('/(?:~~)([^~~]*)(?:~~)/', '<s>$1</s>', $result);
return $result;
}
@@ -27,7 +27,7 @@ function returnSettings(assetPath){
markupSet: [
{name:'Bold', key:'B', openWith:'**', closeWith:'**'},
{name:'Italic', key:'I', openWith:'_', closeWith:'_'},
{name:'Stroke through', key:'S', openWith:'~~~', closeWith:'~~~' },
{name:'Strike Through', key:'S', openWith:'~~', closeWith:'~~' },
{separator:'---------------' },
{name:'Bulleted List', openWith:'- '},
{name:'Numeric List', openWith:function(markItUp) {