From 2b26bbe78a1a2b8b427963a6c44c3853efdb737e Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 6 Mar 2020 03:52:12 +0200 Subject: Fix: img tag did not allow width and height. Removed swipebox from markdown editor img tag and updated marked markdown to newest version. Thanks to hradec and xet7 ! Closes #2956 --- packages/markdown/marked/test/browser/test.js | 66 --------------------------- 1 file changed, 66 deletions(-) delete mode 100644 packages/markdown/marked/test/browser/test.js (limited to 'packages/markdown/marked/test/browser/test.js') diff --git a/packages/markdown/marked/test/browser/test.js b/packages/markdown/marked/test/browser/test.js deleted file mode 100644 index 59917dd4..00000000 --- a/packages/markdown/marked/test/browser/test.js +++ /dev/null @@ -1,66 +0,0 @@ - -;(function() { - var console = {}, - files = __TESTS__; // eslint-disable-line no-undef - - console.log = function(text) { - var args = Array.prototype.slice.call(arguments, 1), - i = 0; - - text = text.replace(/%\w/g, function() { - return args[i++] || ''; - }); - - if (window.console) window.console.log(text); - document.body.innerHTML += '
' + escape(text) + '
'; - }; - - if (!Object.keys) { - Object.keys = function(obj) { - var out = [], - key; - - for (key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - out.push(key); - } - } - - return out; - }; - } - - if (!Array.prototype.forEach) { - // eslint-disable-next-line no-extend-native - Array.prototype.forEach = function(callback, context) { - for (var i = 0; i < this.length; i++) { - callback.call(context || null, this[i], i, this); - } - }; - } - - if (!String.prototype.trim) { - // eslint-disable-next-line no-extend-native - String.prototype.trim = function() { - return this.replace(/^\s+|\s+$/g, ''); - }; - } - - // eslint-disable-next-line no-unused-vars - function load() { - return files; - } - - function escape(html, encode) { - return html - .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); - } - - __LIBS__; // eslint-disable-line no-undef, no-unused-expressions - - (__MAIN__)(); // eslint-disable-line no-undef -}).call(this); -- cgit v1.2.3-1-g7c22