Guttenberg icon indicating copy to clipboard operation
Guttenberg copied to clipboard

Getting code paras excludes the necessary new line at the start

Open Bhargav-Rao opened this issue 7 years ago • 1 comments

The getCodeParagraphs in PostUtils, is a bit faulty in edge cases.

In markdown, the four spaces creates a code block, only if there is a new line before the starting of the code block.

The getCodeParagraphs function should check this as well.

Bhargav-Rao avatar Jun 06 '17 17:06 Bhargav-Rao