diff --git a/main.ts b/main.ts index d346e6d..36dc2d3 100644 --- a/main.ts +++ b/main.ts @@ -29,9 +29,13 @@ export default class PseudocodePlugin extends Plugin { ): Promise { const blockDiv = el.createDiv({ cls: "pseudocode-block" }); const blockWidth = this.settings.blockSize; - blockDiv.style.width = `${blockWidth}em`;; + blockDiv.style.width = `${blockWidth}em`; blockDiv.addEventListener("click", (event) => { - ((event.target as HTMLElement).closest('.pseudocode-block')!.parentElement!.parentElement!.querySelector('.edit-block-button') as HTMLElement)!.click(); + ((event.target as HTMLElement) + .closest('.pseudocode-block')! + .parentElement!.parentElement! + .querySelector('.edit-block-button') as HTMLElement)! + .click(); }); // Extract inline macros