From ccbaffc975a36f54bbcbc21211c49f2bba82751b Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 23 Aug 2023 10:21:57 +0200 Subject: [PATCH] build md plugin #3454 --- plugin/markdown/markdown.esm.js | 2 +- plugin/markdown/markdown.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/markdown/markdown.esm.js b/plugin/markdown/markdown.esm.js index f10b117765c..54cac1497fa 100644 --- a/plugin/markdown/markdown.esm.js +++ b/plugin/markdown/markdown.esm.js @@ -4,4 +4,4 @@ function e(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,h * markdown inside of presentations as well as loading * of external markdown documents. */ -const D="__SCRIPT_END__",P=/\[\s*((\d*):)?\s*([\s\d,|-]*)\]/,M={"&":"&","<":"<",">":">",'"':""","'":"'"};export default()=>{let e;function t(e){var t=(e.querySelector("[data-template]")||e.querySelector("script")||e).textContent,n=(t=t.replace(new RegExp(D,"g"),"<\/script>")).match(/^\n?(\s*)/)[1].length,r=t.match(/^\n?(\t*)/)[1].length;return r>0?t=t.replace(new RegExp("\\n?\\t{"+r+"}(.*)","g"),(function(e,t){return"\n"+t})):n>1&&(t=t.replace(new RegExp("\\n? {"+n+"}(.*)","g"),(function(e,t){return"\n"+t}))),t}function n(e){for(var t=e.attributes,n=[],r=0,s=t.length;r'+N(n[1].trim())+""),'