Skip to content

Commit

Permalink
Fix changelog parsing where lists were not terminated correctly.
Browse files Browse the repository at this point in the history
See #94
  • Loading branch information
YahnisElsts committed Jan 17, 2021
1 parent 3e1c15f commit b6d1714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/extension-meta/extension-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static function parseReadme($readmeTxtContents, $applyMarkdown = false){
*/
private static function applyMarkdown($text){
//The WP standard for readme files uses some custom markup, like "= H4 headers ="
$text = preg_replace('@^\s*=\s*(.+?)\s*=\s*$@m', "<h4>$1</h4>\n", $text);
$text = preg_replace('@^\s*=\s*(.+?)\s*=\s*$@m', "\n####$1####\n", $text);
return Parsedown::instance()->text($text);
}
Expand Down

0 comments on commit b6d1714

Please sign in to comment.