mirror of
https://gitlab.com/octtspacc/sitoctt
synced 2025-06-05 22:09:20 +02:00
Nuova pagina sitoctt internals, Fix misti di pagine, Ristrutturazione file
This commit is contained in:
@ -2,7 +2,9 @@
|
||||
. "$(dirname "$(realpath "$0")")/Lib/Globals.sh"
|
||||
cd "${swd}/.."
|
||||
|
||||
cd ./static/lib
|
||||
mkdir -p ./static/res/lib
|
||||
cd ./static/res/lib
|
||||
|
||||
wget --continue "https://spaccinc.gitlab.io/SpaccDotWeb/SpaccDotWeb.Alt.min.js"
|
||||
wget --continue "https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"
|
||||
wget --continue "https://uicdn.toast.com/editor/latest/toastui-editor.min.css"
|
||||
|
@ -13,7 +13,7 @@ const markdownOptions = {
|
||||
|
||||
const TurndownService = require('turndown');
|
||||
const turndownService = (new TurndownService(markdownOptions));
|
||||
turndownService.keep(['span', 'small', 'sup', 'sub', 'dl', 'details', 'table', 'iframe', 'figure', 'video', 'audio', 'scripts']);
|
||||
turndownService.keep(['span', 'small', 'sup', 'sub', 'dl', 'details', 'table', 'iframe', 'figure', 'video', 'audio', 'script', 'style']);
|
||||
|
||||
Exp.Transform = (html) => fixFootnoteRefs(turndownService.turndown(html));
|
||||
|
||||
|
Reference in New Issue
Block a user