Steps to reproduce

I have a note with a table in it and some text underneath that. The note has no headings, text and no metadata at the top. It starts with the table. When I started typing --- to start the YAML block above the tale Obsidian hung. I quit a reloaded and reproduced this several times. The only way out of it was to edit the note in another editor (BBEdit) and add the metadata. After that it was fine.

Expected result

Should just be able to add lines of anything above the table.

Actual result

Hang.

Environment

  • Operating system: Mac OS 12.1

  • Debug info:
    This was the dev console error:

app.js:1 RangeError: Invalid change range 591 to 2 (in doc of length 11530) at e (app.js:1) at e (app.js:1) at Function.t.of (app.js:1) at t.transaction (app.js:1) at t.e.newlineAndIndentOnly (app.js:1) at shift (app.js:1) at c (app.js:1) at gc (app.js:1) at Object.keydown (app.js:1) at e.runCustomHandlers (app.js:1) at HTMLDivElement.<anonymous> (app.js:1) at HTMLDivElement.e (eval at <anonymous> (app.js:1), <anonymous>:333:36332)


Additional information

Happy to supply the note file directly to the developers. I can’t post it publicly here.

Does it happen in the help vault?

you get the debug info using the show debug in command palette. You can attach the note with a DM to me.