plugin-update-checker/vendor
Yahnis Elsts 73852adb2d Fix parsing of "= version =" headers in readme.txt
The readme.txt format that's used by WordPress is not quite standard Markdown. It includes a couple of features that are not directly supported by popular Markdown parsers. One of those features is parsing "= string =" as "<h4>string</h4>" (the opening "=" must be at the start of the line). Leading whitespace is allowed. This syntax is typically for plugin version numbers in the changelog section.

The problem: the readme parser discards leading whitespace when parsing these headers. This means it can also discard the previous line break character(s). As a result, this markup:
 
 * abc
 
 = 1.2.3 =
 * def
 
 Becomes this:
 
 * abc
 <h4>1.2.3</h4>
 * def
 
 The way that Parsedown handles this markup is to make the H4 a part of the preceding list item. And that's a bug. 
   
 Fixed by keeping leading whitespace instead of throwing it away.

Closes #68
2016-09-14 19:42:09 +03:00
..
Parsedown.php Add: Parsedown.php (1.6.0) 2016-03-11 06:51:43 +01:00
ParsedownLegacy.php Rename Parsedown.php to ParsedownLegacy.php 2016-03-11 06:51:09 +01:00
readme-parser.php Fix parsing of "= version =" headers in readme.txt 2016-09-14 19:42:09 +03:00