diff --git a/src/bb-library/Box/TwigExtensions.php b/src/bb-library/Box/TwigExtensions.php index aa4e6df45..53e9ed755 100644 --- a/src/bb-library/Box/TwigExtensions.php +++ b/src/bb-library/Box/TwigExtensions.php @@ -306,6 +306,7 @@ function twig_markdown_filter(Twig\Environment $env, $value) return $match[0]; }, $result); + $result = preg_replace('/(?:~~)([^~~]*)(?:~~)/', '$1', $result); return $result; } diff --git a/src/bb-modules/Wysiwyg/assets/markitup/sets/default/set.js b/src/bb-modules/Wysiwyg/assets/markitup/sets/default/set.js index fd3b3efce..734e253b5 100644 --- a/src/bb-modules/Wysiwyg/assets/markitup/sets/default/set.js +++ b/src/bb-modules/Wysiwyg/assets/markitup/sets/default/set.js @@ -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) {