Something has gone very wrong with fenced code blocks (item with ``` prefix) recently, using the Beta:
- Existing code blocks, and the items around them, have become impossible to edit.
- While typing in a new code block, the cursor doesn’t follow the text, but stays at the beginning. If you press enter to make a new line, the cursor goes up instead of down, and text goes before what you just typed. Plus other weirdness.
- After finishing typing, and clicking somewhere else, you can’t go back and edit the block anymore. The cursor goes to the wrong place, you can’t type anything, and if you try to move the cursor with the arrow keys, the whole window scrolls instead.
- Items before and after the code block also become impossible to edit, the same thing happens with the cursor and scrolling. Generally it’s items immediately before or after the code block (whether they’re parents, children, or siblings), but sometimes items farther away can be affected.
- If an item has a code block as a child, you may be able to edit the item if you collapse it so that the code block isn’t displayed.
PS, I’ll just mention this, not so urgent, but it’s always been frustrating that you can’t place the cursor after a code block, i.e. at the end but outside the block. If I’ve finished entering a code block, or a code block is the last child, or the last item on a page, I can’t add a new item after it. I have to put the new item somewhere else, and drag it into place.