Skip to content

Commit 99ae7fe

Browse files
Rollup merge of #155040 - yalagadapavankumar:fix-whitespace, r=JohnTitor
Fix code block whitespace handling in Markdown ### Fix Markdown code block closing whitespace handling Previously, the parser incorrectly accepted closing backticks followed by extra text and rejected lines where only spaces appeared after closing backticks. This did not match expected Markdown behavior. Now, the parser correctly ends a code block only when line after the code ends with spaces or nothing. Lines where extra text appears after the closing backticks are treated as part of the code block. Includes tests for both correct and incorrect cases. ### Related issue This PR addresses the Outreachy issue: [Markdown whitespace bug in Rust Compiler](rustfoundation/interop-initiative#53)
2 parents a17c083 + 6ad7a14 commit 99ae7fe

0 file changed

File tree

    0 commit comments

    Comments
     (0)