fix errors when no markdown options are provided #2956

This commit is contained in:
Hakim El Hattab committed 2021-05-17 10:02:12 +02:00
1 parent 2c115b887a
commit 632cc78873
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealMarkdown=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!a.call({1:2},1)?function(e){var t=l(this,e);return!!t&&t.enumerable}:a},c=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,f=function(e){return u.call(e).slice(8,-1)},p="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?p.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},d=function(e){return h(g(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,m=function(e,t){return k.call(e,t)},b=r.document,x=v(b)&&v(b.createElement),w=function(e){return x?b.createElement(e):{}},S=!o&&!i((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,E={f:o?_:function(e,t){if(e=d(e),t=y(t,!0),S)try{return _(e,t)}catch(e){}if(m(e,t))return c(!s.f.call(e,t),e[t])}},A=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},O=Object.defineProperty,T={f:o?O:function(e,t,n){if(A(e),t=y(t,!0),A(n),S)try{return O(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},R=o?function(e,t,n){return T.f(e,t,c(1,n))}:function(e,t,n){return e[t]=n,e},I=function(e,t){try{R(r,e,t)}catch(n){r[e]=t}return t},j="__core-js_shared__",z=r[j]||I(j,{}),$=Function.toString;"function"!=typeof z.inspectSource&&(z.inspectSource=function(e){return $.call(e)});var P,C,L,M=z.inspectSource,N=r.WeakMap,U="function"==typeof N&&/native code/.test(M(N)),q=t((function(e){(e.exports=function(e,t){return z[e]||(z[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),D=0,Z=Math.random(),F=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++D+Z).toString(36)},G=q("keys"),W=function(e){return G[e]||(G[e]=F(e))},H={},B=r.WeakMap;if(U){var V=z.state||(z.state=new B),K=V.get,X=V.has,Y=V.set;P=function(e,t){return t.facade=e,Y.call(V,e,t),t},C=function(e){return K.call(V,e)||{}},L=function(e){return X.call(V,e)}}else{var J=W("state");H[J]=!0,P=function(e,t){return t.facade=e,R(e,J,t),t},C=function(e){return m(e,J)?e[J]:{}},L=function(e){return m(e,J)}}var Q,ee,te={set:P,get:C,has:L,enforce:function(e){return L(e)?C(e):P(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=C(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=t((function(e){var t=te.get,n=te.enforce,i=String(String).split("String");(e.exports=function(e,t,o,a){var l,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||m(o,"name")||R(o,"name",t),(l=n(o)).source||(l.source=i.join("string"==typeof t?t:""))),e!==r?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:R(e,t,o)):c?e[t]=o:I(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||M(this)}))})),re=r,ie=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?ie(re[e])||ie(r[e]):re[e]&&re[e][t]||r[e]&&r[e][t]},ae=Math.ceil,le=Math.floor,se=function(e){return isNaN(e=+e)?0:(e>0?le:ae)(e)},ce=Math.min,ue=function(e){return e>0?ce(se(e),9007199254740991):0},fe=Math.max,pe=Math.min,he=function(e,t){var n=se(e);return n<0?fe(n+t,0):pe(n,t)},ge=function(e){return function(t,n,r){var i,o=d(t),a=ue(o.length),l=he(r,a);if(e&&n!=n){for(;a>l;)if((i=o[l++])!=i)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},de={includes:ge(!0),indexOf:ge(!1)},ve=de.indexOf,ye=function(e,t){var n,r=d(e),i=0,o=[];for(n in r)!m(H,n)&&m(Line truncated
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealMarkdown=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(e){try{return!!e()}catch(e){return!0}},i=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!o.call({1:2},1)?function(e){var t=a(this,e);return!!t&&t.enumerable}:o},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c={}.toString,f=function(e){return c.call(e).slice(8,-1)},p="".split,h=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?p.call(e,""):Object(e)}:Object,D=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return h(D(e))},d=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!d(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!d(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!d(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!d(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,y=function(e,t){return A.call(e,t)},E=r.document,m=d(E)&&d(E.createElement),k=function(e){return m?E.createElement(e):{}},b=!i&&!u((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),F=Object.getOwnPropertyDescriptor,C={f:i?F:function(e,t){if(e=g(e),t=v(t,!0),b)try{return F(e,t)}catch(e){}if(y(e,t))return s(!l.f.call(e,t),e[t])}},x=function(e){if(!d(e))throw TypeError(String(e)+" is not an object");return e},w=Object.defineProperty,S={f:i?w:function(e,t,n){if(x(e),t=v(t,!0),x(n),b)try{return w(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},B=i?function(e,t,n){return S.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{B(r,e,t)}catch(n){r[e]=t}return t},O="__core-js_shared__",T=r[O]||_(O,{}),R=Function.toString;"function"!=typeof T.inspectSource&&(T.inspectSource=function(e){return R.call(e)});var j,I,$,z=T.inspectSource,P=r.WeakMap,L="function"==typeof P&&/native code/.test(z(P)),M=t((function(e){(e.exports=function(e,t){return T[e]||(T[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),N=0,q=Math.random(),U=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++N+q).toString(36)},Z=M("keys"),G=function(e){return Z[e]||(Z[e]=U(e))},H={},V=r.WeakMap;if(L){var K=T.state||(T.state=new V),X=K.get,Y=K.has,W=K.set;j=function(e,t){return t.facade=e,W.call(K,e,t),t},I=function(e){return X.call(K,e)||{}},$=function(e){return Y.call(K,e)}}else{var J=G("state");H[J]=!0,j=function(e,t){return t.facade=e,B(e,J,t),t},I=function(e){return y(e,J)?e[J]:{}},$=function(e){return y(e,J)}}var Q,ee,te={set:j,get:I,has:$,enforce:function(e){return $(e)?I(e):j(e,{})},getterFor:function(e){return function(t){var n;if(!d(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=t((function(e){var t=te.get,n=te.enforce,u=String(String).split("String");(e.exports=function(e,t,i,o){var a,l=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||y(i,"name")||B(i,"name",t),(a=n(i)).source||(a.source=u.join("string"==typeof t?t:""))),e!==r?(l?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:B(e,t,i)):s?e[t]=i:_(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||z(this)}))})),re=r,ue=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?ue(re[e])||ue(r[e]):re[e]&&re[e][t]||r[e]&&r[e][t]},oe=Math.ceil,ae=Math.floor,le=function(e){return isNaN(e=+e)?0:(e>0?ae:oe)(e)},se=Math.min,ce=function(e){return e>0?se(le(e),9007199254740991):0},fe=Math.max,pe=Math.min,he=function(e,t){var n=le(e);return n<0?fe(n+t,0):pe(n,t)},De=function(e){return function(t,n,r){var u,i=g(t),o=ce(i.length),a=he(r,o);if(e&&n!=n){for(;o>a;)if((u=i[a++])!=u)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},ge={includes:De(!0),indexOf:De(!1)},de=ge.indexOf,ve=function(e,t){var n,r=g(e),u=0,i=[];for(n in r)!y(H,n)&&y(Line truncated