Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting code paras excludes the necessary new line at the start #102

Open
Bhargav-Rao opened this issue Jun 6, 2017 · 1 comment
Open
Labels

Comments

@Bhargav-Rao
Copy link
Member

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 Bhargav-Rao added the bug label Jun 8, 2017
@FelixSFD FelixSFD added this to the 1.0 milestone Jan 10, 2018
@FelixSFD FelixSFD removed this from the 1.0 milestone Feb 2, 2018
@sbaltes
Copy link

sbaltes commented Oct 25, 2018

For our SOTorrent project, we developed an extraction method that splits Stack Overflow posts into code and text blocks. Our method considers other Markdown "dialects", for example GitHub's approach using three back-ticks ``` (see also the corresponding test cases). If you'd be interested in integrating that method into Guttenberg, just let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants