You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In d671683, we stripped trailing whitespace in code blocks to address #3998. However, this is inconsistent with CommonMark, and can cause problems for the user, e.g. making diff blocks invalid.
Whitespace must not be stripped from a fenced code block, except from the info string on the opening fence line and up to three spaces immediately preceding the closing fence on the closing fence line.
As a follow-up, we can consider fixing #3998 by offering users the option to strip trailing whitespace before sending a message when we think it would be helpful to do so.
In d671683, we stripped trailing whitespace in code blocks to address #3998. However, this is inconsistent with CommonMark, and can cause problems for the user, e.g. making
diff
blocks invalid.As discussed on CZO, we should follow the CommonMark rules for processing code blocks:
As a follow-up, we can consider fixing #3998 by offering users the option to strip trailing whitespace before sending a message when we think it would be helpful to do so.
CZO discussion thread
The text was updated successfully, but these errors were encountered: