From 410b45304957b236be43d85dbf08342bd82f78c7 Mon Sep 17 00:00:00 2001 From: Estevao Soares dos Santos Date: Sat, 23 Dec 2017 14:00:20 +0000 Subject: [PATCH] fix jsdom polyfill --- dist/showdown.js | Bin 191320 -> 191270 bytes dist/showdown.js.map | Bin 482981 -> 482834 bytes dist/showdown.min.js | Bin 106593 -> 106659 bytes dist/showdown.min.js.map | Bin 85539 -> 85572 bytes src/converter.js | 2 +- src/helpers.js | 5 +++++ src/showdown.js | 9 --------- 7 files changed, 6 insertions(+), 10 deletions(-) diff --git a/dist/showdown.js b/dist/showdown.js index ea4f7ad12516f8bd5000e092e9f6da895ad7de7c..13815eeae02e43b30efb6e12970d1b115f4fc3d0 100644 GIT binary patch delta 181 zcmca{jeFTO?hQ&3n{6cjsS0GKDQJ{b7Nq8nK#$YU%-%C6?xtgk`3dPgazaGAPc- zF9({Er*}}fv!k%%vg*}s8%48EAf$d?7nV38P Du*W`x delta 201 zcmZ2>jr+zm?hQ&3id_2o3OV_SDGDj61*v%{sd>qnsl{BGX$l%8l?AE!X$q4K?35=* z*vW8~B^D`U6{qCqPOi6;bkpHd00Xdye^Qo$Eksg7U0p|^x>ge=U!Iwll3xy!1uE1_ zNli;E%_#}XOfA=$yw*+}Vva&eesXDUYF-IYDMXJROl0yJJE_fz68}}3f7rGEuw&f* P!;VQNWxL8^CMFL60MkQ{ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index 607c84db6f457caa4b3738503ae7157b83006ecb..22a1d9b1bb5b093a08cad0ec0dea232f4d4b43ec 100644 GIT binary patch delta 467 zcmZ3wS9a1K*$sAjlLe(kH`^IRI58VWxJ?c$mzw^ef>~txyiZIVlg}4ToUCQQHCg5) z|Ktn&T+=rkVC0&9;VmQAF9*Y9O!o&2y(VRFI@k;w;uMlY!4ntot56U+1i zZ80c+m*%GCl_=OkY=IaJ7oOfYl|`am ca54)Jvu+oh%(kUr`jl8Uf$c|y*&lcT04#^7xBvhE delta 569 zcmYjLO^8xa6vlh6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uL9@jONgY`mhWYH8?EwowWLfjMg0(hYj>`kKst# zEi1T2MNe)@+(IgQ!3yqIvEc<=MWRk-+^JHhx1*-(!RP@|5B+AnJEa!3qs}!nxCY@) z*{J5-L&eu)-1Aq35Jp=kIJtxR-6?*F47iojPz=yXW+%NyAok`0AOoyS(|JmCPpiiD zl=|@)1!1fk(CXBw&kfUFRwsQ*m=mi~VI3_WiGwQ}J)bRh(#v*tC diff --git a/src/converter.js b/src/converter.js index c2acc7f..7776c4a 100644 --- a/src/converter.js +++ b/src/converter.js @@ -359,7 +359,7 @@ showdown.Converter = function (converterOptions) { // ex: this is sparta src = src.replace(/>[ \t]+¨NBSP;<'); - var doc = document.createElement('div'); + var doc = showdown.helper.document.createElement('div'); doc.innerHTML = src; var preList = substitutePreCodeTags(doc); diff --git a/src/helpers.js b/src/helpers.js index a8a17fb..f3a3ebb 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -6,6 +6,11 @@ if (!showdown.hasOwnProperty('helper')) { showdown.helper = {}; } +if (typeof this.document === 'undefined' && typeof this.window === 'undefined') { + this.window = require('jsdom').jsdom('', {}).defaultView; // jshint ignore:line +} +showdown.helper.document = this.window.document; + /** * Check if var is string * @static diff --git a/src/showdown.js b/src/showdown.js index bc0e508..f999868 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -1,15 +1,6 @@ /** * Created by Tivie on 06-01-2015. */ - -// load dependencies -if (typeof document === 'undefined' && typeof window === 'undefined') { - var jsdom = require('jsdom').jsdom, - jsdomObj = jsdom('', {}), - window = jsdomObj.defaultView, // jshint ignore:line - document = window.document; // jshint ignore:line -} - // Private properties var showdown = {}, parsers = {},