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

Random text creates empty output #174

Closed
markseuffert opened this issue Aug 26, 2014 · 3 comments
Closed

Random text creates empty output #174

markseuffert opened this issue Aug 26, 2014 · 3 comments

Comments

@markseuffert
Copy link

Hi,

I was testing latest Markdown library together with @wunderfeyd. With random text as input it happens sometimes that there's no output, just a newline. I tried to isolate the problem, but didn't find out that much. It happens in the Markdown Extra parser and around 14K of random input text.

use \Michelf\MarkdownExtra;
$my_html = MarkdownExtra::defaultTransform($my_text);

There was no problem with normal Markdown parser and regular text bigger than 14K.
Is there a way to get debugging output.... someone wants to have a look at our input files?

@markseuffert
Copy link
Author

Here's a test file https://github.com/wunderfeyd/yellowcms-tests/blob/master/zzz-random2.txt

I used PHP 5.5 with
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000

@jaswrks
Copy link
Contributor

jaswrks commented Mar 16, 2015

This happens to me in v1.5.0 using PHP Markdown Extra with the following:

## Header {#my-header .my-class}

Removing #my-header or .my-class will correct this. Leaving them both together results in everything being eaten for some reason; i.e., I get back an empty string.

@michelf
Copy link
Owner

michelf commented Mar 16, 2015

@jaswsinc Can you tell me more about your PHP configuration (version, and the pcre.backtrack_limit and pcre.recursion_limit settings)?

It works fine for me on the dingus.

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

No branches or pull requests

3 participants