php-markdown icon indicating copy to clipboard operation
php-markdown copied to clipboard

Parser for Markdown and Markdown Extra derived from the original Markdown.pl by John Gruber.

Results 107 php-markdown issues
Sort by recently updated
recently updated
newest added

Add .gitattributes, exclude tests from archive

For the time being, when fetching the dist package from composer, all repository files are included. Using `export-ignore` git attribute would permit to make the dist package ligther (see https://php.watch/articles/composer-gitattributes#export-ignore)....

Is there a reason why `runSpanGamut()` is called twice on the same string in the `_doAnchors_inline_callback()` function? Check out the `_doAnchors_inline_callback()` function in Markdown.php. [Line 754](https://github.com/michelf/php-markdown/blob/9d7fb2c8ae9155081dcbab275ef945e546cf72ba/Michelf/Markdown.php#L754): ```php $link_text = $this->runSpanGamut($matches[2]);...

Code with 4 leading spaces works. ``` code here ``` Code with leading tab works. ``` code here ``` Code with 4 leading spaces in quote works (if there is...

With the major release of PHP 7.3 there were some [big changes under the hood](https://hackernoon.com/deprecations-and-changes-for-php-7-3-avoid-errors-7a5c4dbeaa8b) with the regular expression engine, going from PCRE to PCRE2. While it is not explicitly...

It makes the tests fail if run with a relatively small recursion limit and no JIT: ``` php -dpcre.jit=0 -dpcre.recursion_limit=200 vendor/bin/phpunit ``` See #333

Looks like PHPStan is kinda lost here.

Currently the extra attributes cannot take a quotes string. So `{attr1=abc attr2="def ghi"}` does not work. The source regex is this: ``` protected $id_class_attr_catch_re = '\{((?>[ ]*[#.a-z][-_:a-zA-Z0-9=]+){1,})[ ]*\}'; ``` Is...

Instead of using 2 spaces at the end of a line, there's another way to add a line break. https://spec.commonmark.org/0.30/#example-634 ```md line \ break ``` line \ break

your code has a bug where if an ampersand or a less than sign is found in code marked (in markdown) as em via single asterisks the resulting html will...