ux/Showdown.js
authorAlan Knowles <alan@roojs.com>
Tue, 18 Oct 2016 08:57:47 +0000 (16:57 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Oct 2016 08:57:47 +0000 (16:57 +0800)
ux/Showdown.js

index 0963488..75c7e36 100644 (file)
@@ -867,6 +867,7 @@ Roo.ux.Showdown.converter = function() {
             */
     
             // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
+            text = text.replace(/~0/,"");
             text += "~0";
             
             text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,