Summary
Currently, when sending a message like so:```text
something
something, without requiring the closing ``` string.
On Discord, pressing Enter in a message with only one ``` will instead add a newline.
Steps to reproduce
- type ```
- (optionally) add text on a new line
- send message
1 comment
Comment by @cproudlock
packages/markdown_parser/src/parsers/BlockParsers.tsxin theparseCodeBlock()function (around line 627-634). When the parser encounters an opening fence (```) but reaches EOF without finding a closing fence, it falls through to an unconditional return that still creates a validCodeBlocknode:nullinstead of a CodeBlock when no closing fence is found, so the content is treated as regular text. Something like tracking whether the closing fence was matched and guarding the return:nullis correct.