From 290c251c7eb131ece4210e9776476ae4c21fb74c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 10 Feb 2021 10:33:22 +0100 Subject: [PATCH] fix default md slide separator not working #2850 --- demo.html | 2 +- plugin/markdown/markdown.esm.js | 2 +- plugin/markdown/markdown.js | 2 +- plugin/markdown/plugin.js | 7 ++----- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/demo.html b/demo.html index 1f4e8fa7..685667d4 100644 --- a/demo.html +++ b/demo.html @@ -186,7 +186,7 @@ Write content using inline or external Markdown. Instructions and more info available in the [docs](https://revealjs.com/markdown/). - ```[] + ```html []
## Markdown support diff --git a/plugin/markdown/markdown.esm.js b/plugin/markdown/markdown.esm.js index f18e3ff3..cfe4d30d 100644 --- a/plugin/markdown/markdown.esm.js +++ b/plugin/markdown/markdown.esm.js @@ -1 +1 @@ -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,A={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])}},E=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(E(e),t=y(t,!0),E(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=r["__core-js_shared__"]||I("__core-js_shared__",{}),$=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(e){return $.call(e)});var z,P,C,L=j.inspectSource,M=r.WeakMap,N="function"==typeof M&&/native code/.test(L(M)),D=t((function(e){(e.exports=function(e,t){return j[e]||(j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,q=Math.random(),Z=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++U+q).toString(36)},F=D("keys"),G=function(e){return F[e]||(F[e]=Z(e))},H={},W=r.WeakMap;if(N){var B=j.state||(j.state=new W),V=B.get,K=B.has,X=B.set;z=function(e,t){return t.facade=e,X.call(B,e,t),t},P=function(e){return V.call(B,e)||{}},C=function(e){return K.call(B,e)}}else{var Y=G("state");H[Y]=!0,z=function(e,t){return t.facade=e,R(e,Y,t),t},P=function(e){return m(e,Y)?e[Y]:{}},C=function(e){return m(e,Y)}}var J,Q,ee={set:z,get:P,has:C,enforce:function(e){return C(e)?P(e):z(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=P(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},te=t((function(e){var t=ee.get,n=ee.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||L(this)}))})),ne=r,re=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?re(ne[e])||re(r[e]):ne[e]&&ne[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},ue=Math.max,fe=Math.min,pe=function(e,t){var n=le(e);return n<0?ue(n+t,0):fe(n,t)},he=function(e){return function(t,n,r){var i,o=d(t),a=ce(o.length),l=pe(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}},ge={includes:he(!0),indexOf:he(!1)},de=ge.indexOf,ve=function(e,t){var n,r=d(e),i=0,o=[];for(n in r)!m(H,n)&&m(r,n)&&o.push(n);for(;t.length>i;)m(r,n=t[i++])&&(~de(o,n)||o.push(n));return o},ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ke=ye.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(e){return ve(e,ke)}},be={f:Object.getOwnPropertySymbols},xe=ie("Reflect","ownKeys")||function(e){var t=me.f(E(e)),n=be.f;return n?t.concat(n(e)):t},we=function(e,t){for(var n=xe(t),r=T.f,i=A.f,o=0;o=74)&&(J=Fe.match(/Chrome\/(\d+)/))&&(Q=J[1]);var Be=Q&&+Q,Ve=Ue("species"),Ke=function(e){return Be>=51||!i((function(){var t=[];return(t.constructor={})[Ve]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Xe=Ue("isConcatSpreadable"),Ye=Be>=51||!i((function(){var e=[];return e[Xe]=!1,e.concat()[0]!==e})),Je=Ke("concat"),Qe=function(e){if(!v(e))return!1;var t=e[Xe];return void 0!==t?!!t:$e(e)};je({target:"Array",proto:!0,forced:!Ye||!Je},{concat:function(e){var t,n,r,i,o,a=ze(this),l=Ze(a,0),s=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pe(l,s++,o)}return l.length=s,l}});var et=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},tt=function(e,t,n){if(et(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},nt=[].push,rt=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(l,s,c,u){for(var f,p,g=ze(l),d=h(g),v=tt(s,c,3),y=ce(d.length),k=0,m=u||Ze,b=t?m(l,y):n?m(l,0):void 0;y>k;k++)if((a||k in d)&&(p=v(f=d[k],k,g),e))if(t)b[k]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return k;case 2:nt.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},it={forEach:rt(0),map:rt(1),filter:rt(2),some:rt(3),every:rt(4),find:rt(5),findIndex:rt(6)},ot=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},at=Object.defineProperty,lt={},st=function(e){throw e},ct=function(e,t){if(m(lt,e))return lt[e];t||(t={});var n=[][e],r=!!m(t,"ACCESSORS")&&t.ACCESSORS,a=m(t,0)?t[0]:st,l=m(t,1)?t[1]:void 0;return lt[e]=!!n&&!i((function(){if(r&&!o)return!0;var e={length:-1};r?at(e,1,{enumerable:!0,get:st}):e[1]=1,n.call(e,a,l)}))},ut=it.forEach,ft=ot("forEach"),pt=ct("forEach"),ht=ft&&pt?[].forEach:function(e){return ut(this,e,arguments.length>1?arguments[1]:void 0)};je({target:"Array",proto:!0,forced:[].forEach!=ht},{forEach:ht});var gt,dt=Object.keys||function(e){return ve(e,ye)},vt=o?Object.defineProperties:function(e,t){E(e);for(var n,r=dt(t),i=r.length,o=0;i>o;)T.f(e,n=r[o++],t[n]);return e},yt=ie("document","documentElement"),kt=G("IE_PROTO"),mt=function(){},bt=function(e){return"