Skip to content

Commit

Permalink
Fix issue with hanging plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Aug 10, 2024
1 parent f1e6b33 commit a23a233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/markdown/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let elements = $$(selectors.join(", "));

if (elements.length === 0) {
// Basically return;
await new Promise(r => {});
await new Promise((res, rej) => {rej("No markdown elements")});
}

await import("https://cdn.jsdelivr.net/npm/[email protected]/dist/markdown-it.js");
Expand Down

0 comments on commit a23a233

Please sign in to comment.