mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
updated css, index.md, modal css class
This commit is contained in:
@@ -15,6 +15,7 @@ export class ScriptInstallPrompt extends Modal {
|
||||
|
||||
async onOpen(): Promise<void> {
|
||||
this.contentEl.classList.add("excalidraw-scriptengine-install");
|
||||
this.containerEl.classList.add("excalidraw-scriptengine-install");
|
||||
try {
|
||||
const source = await request({ url: URL });
|
||||
await MarkdownRenderer.renderMarkdown(
|
||||
@@ -23,7 +24,7 @@ export class ScriptInstallPrompt extends Modal {
|
||||
"",
|
||||
this.plugin,
|
||||
);
|
||||
this.contentEl.querySelectorAll("h2[data-heading").forEach((el) => {
|
||||
this.contentEl.querySelectorAll("h1[data-heading],h2[data-heading]").forEach((el) => {
|
||||
el.setAttribute("id", el.getAttribute("data-heading"));
|
||||
});
|
||||
this.contentEl.querySelectorAll("ul>li>a.internal-link").forEach((el) => {
|
||||
|
||||
Reference in New Issue
Block a user