Roo/Markdown.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 07:02:02 +0000 (15:02 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2020 07:02:02 +0000 (15:02 +0800)
Roo/Markdown.js

index 7b76b4c..cdc89a0 100644 (file)
@@ -1135,7 +1135,7 @@ Roo.Markdown.toHtml = function(text) {
         .replace(/'/g, '&#39;');
     }
     
-    function unescape(html) {
+    var unescape = function (html) {
         // explicitly match decimal, hex, and named HTML entities 
       return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g, function(_, n) {
         n = n.toLowerCase();
@@ -1149,7 +1149,7 @@ Roo.Markdown.toHtml = function(text) {
       });
     }
     
-    function replace(regex, opt) {
+    var replace= function (regex, opt) {
       regex = regex.source;
       opt = opt || '';
       return function self(name, val) {
@@ -1161,10 +1161,10 @@ Roo.Markdown.toHtml = function(text) {
       };
     }
     
-    function noop() {}
+    var noop = function () {}
     noop.exec = noop;
     
-    function merge(obj) {
+    var merge = function (obj) {
       var i = 1
         , target
         , key;
@@ -1186,7 +1186,7 @@ Roo.Markdown.toHtml = function(text) {
      * Marked
      */
     
-    function marked(src, opt, callback) {
+    var marked = function (src, opt, callback) {
       if (callback || typeof opt === 'function') {
         if (!callback) {
           callback = opt;