diff --git a/dist/assets/index-V04a1n39.js b/dist/assets/index-KdN4AvZR.js similarity index 99% rename from dist/assets/index-V04a1n39.js rename to dist/assets/index-KdN4AvZR.js index 0b0df1c..80734c3 100644 --- a/dist/assets/index-V04a1n39.js +++ b/dist/assets/index-KdN4AvZR.js @@ -528,7 +528,7 @@ function enhanceCodeBlocks(root, doHL = true) { if (doHL && window.hljs && code.textContent.length < 1e5) hljs.highlightElement(code); }); } -const md = window.markdownit({ html: false, linkify: true, typographer: true, breaks: true }).use(window.texmath, { engine: window.katex, delimiters: "dollars", katexOptions: { macros: { "\\RR": "\\mathbb{R}" } } }); +const md = window.markdownit({ html: false, linkify: true, typographer: true, breaks: true }); const getSuneLabel = (m) => { const name = m && m.sune_name || SUNE.name, modelShort = getModelShort(m && m.model); return `${name} · ${modelShort}`; @@ -1539,8 +1539,8 @@ $(el.threadSyncBtn).on("click", async () => { if (remoteMap[t.id] && remoteMap[t.id].name !== newName) { await ghApi(`${info.apiPath}/${remoteMap[t.id].name}`, "DELETE", { message: `Rename thread ${t.id}`, sha: remoteMap[t.id].sha, branch: info.branch }); } - const x = await ghApi(`${info.apiPath}/${newName}?ref=${info.branch}`); - await ghApi(`${info.apiPath}/${newName}`, "PUT", { message: `Sync thread ${t.id}`, content: utob(JSON.stringify(msgs, null, 2)), branch: info.branch, sha: x?.sha }); + const ex = await ghApi(`${info.apiPath}/${newName}?ref=${info.branch}`); + await ghApi(`${info.apiPath}/${newName}`, "PUT", { message: `Sync thread ${t.id}`, content: utob(JSON.stringify(msgs, null, 2)), branch: info.branch, sha: ex?.sha }); t.status = "synced"; } } diff --git a/dist/index.html b/dist/index.html index 51400b7..0840c8b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -9,13 +9,13 @@ - - - + + +
@@ -200,10 +200,10 @@ - - - +