Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable to insert extra new line character into the end of backtick code block (fix #3767) #3768
What does it do?
A paragraph follows a backtick code block on a blockquote should be included same blcokquote block.
This is caused by the implementation of
This patch disables this behavior.
How to test
$ npm test
Pull request tasks
…ode block (fix #3767) A paragraph follows a backtick code block on a blockquote should be included same blcokquote block. But the code block always terminates blockquote. So the blockquote block splits two blocks. This is caused by the implementation of `backtick_code_block.js`. It inserts extra new line character into the end of backtick code block. This patch disables this behavior.
Using your example:
a note for anyone's new to Markdown is that, the "following paragraph" is displayed immediately after the codeblock (no newline), regardless of how many
The above wouldn't have new lines either.
This is not a limitation of this PR (nor #3765), the behavior is rather expected for Markdown; I figure it could be rather unexpected for those who are new to Markdown.
would be displayed as: