Don't close card on <Enter> while code block isn't closed

It would be nice to be able to write code blocks and add new lines without holding <alt> then pressing <enter>. Simple idea would be to not close the on single <enter> until the code block has closed and instead add a new line(maybe at the current indent :wink:). If someone wanted to for whatever reason to have 3 backticks at the start of the card but not have a code block then maybe a double <enter> to close a card.

1 Like

that makes sense, you’re saying that enter should be ignored if in the middle of a triple backtick ``` , but not a single ` one right?

1 Like

side question: the max size of cards is capped at 300 characters (a little bit longer than tweet length), that’s not a problem for the kind of code blocks you want to enter is it?

2 Likes