Roo/Markdown.js
authorAlan Knowles <alan@roojs.com>
Thu, 10 Jan 2019 04:48:38 +0000 (12:48 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Jan 2019 04:48:38 +0000 (12:48 +0800)
Roo/Markdown.js

index e86fd1d..de54b7c 100644 (file)
@@ -1126,7 +1126,7 @@ Roo.Markdown.toHtml = function(text) {
      * Helpers
      */
     
-    function escape(html, encode) {
+    var escape = function (html, encode) {
       return html
         .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&amp;')
         .replace(/</g, '&lt;')
@@ -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,7 +1161,7 @@ Roo.Markdown.toHtml = function(text) {
       };
     }
     
-    function noop() {}
+    var noop = function () {}
     noop.exec = noop;
     
     function merge(obj) {
@@ -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;