javalent / markdown-attributes

Add attributes to elements in Obsidian
MIT License
94 stars 7 forks source link

Long (16 characters or more) {.divclass} Causes Obsidian to Freeze #16

Closed sigrunixia closed 2 years ago

sigrunixia commented 2 years ago

I reported this on TTRPG but will make a formal report after collecting even more data last night (and accidentally crashing my Obsidian making a Zotero template, oy).

Describe the bug Long named {.named} of 16 characters or more will cause Obsidian to Freeze if in live-edit-preview mode. It will trigger whether or not the {.named} has an associated CSS or not.

Markdown Source

moo
{.dragonscript}

moos
{.dragonscript}

moooooo
{.espruarFont}

{.dragonscriptFont} - This one seems to Froze Obsidian consistently
{.dragonscript-Dad} - This one seems to Froze Obsidian consistently
{.jibberjabbergobbl} - This one Froze Obsidian
{.jabberwockylovessomehockey} - This one took 5-10 seconds to Freeze Obsidian

How to Reproduce In live-edit-preview mode and in any note, type in a {.divclass} that has long a long name. I did determine the minimum character count to trigger the change from no-crash to crash (16). The live preview, it will freeze and you will be unable to perform most actions from Obsidian even within the menu. It requires a force-quit.

Relevant Details

valentine195 commented 2 years ago

hi, this should be fixed in the latest release