From 86a92da63e119b6d4acbea4dde10057b457fee27 Mon Sep 17 00:00:00 2001 From: rgravitvl Date: Tue, 26 Nov 2024 19:32:59 +0530 Subject: [PATCH] Updated script converter --- tools/importer/transformers/embedScript.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/importer/transformers/embedScript.js b/tools/importer/transformers/embedScript.js index 518ee75a..438c5f50 100644 --- a/tools/importer/transformers/embedScript.js +++ b/tools/importer/transformers/embedScript.js @@ -51,6 +51,10 @@ const embedScript = (main, document) => { const scriptEls = main.querySelectorAll('div.script'); if (scriptEls.length > 0) { scriptEls.forEach((scriptEl) => { + if (scriptEl.querySelector('div#add-section')?.id === 'add-section') { + scriptEl.innerHTML = ''; + scriptEl.append(document.createElement('hr')); + } const iFrame = scriptEl.querySelector('iframe'); if (iFrame) { const anc = document.createElement('a');