mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Merge pull request #464 from BelleNottelling/strikethrough
Add / Fix strikethrough support
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user