wpreadme2markdown / wp-readme-to-markdown

Convert WordPress Plugin Readme Files to GitHub Flavored Markdown
MIT License
92 stars 20 forks source link

Don't greedily boldface all strings ending with colons, just the defined labels #4

Closed codebykat closed 11 years ago

codebykat commented 11 years ago

If you have any lines later in your Readme that happen to contain colons, it gets pretty ugly.

Example:

1. Set up the WordPress testing library as described in [Handbook: Automated Testing (http://make.wordpress.org/core/handbook/automated-testing/).

Becomes:

**1. Set up the WordPress testing library as described in [Handbook:** Automated Testing](http://make.wordpress.org/core/handbook/automated-testing/).

Instead of greedily matching any line with a colon, this patch only matches the labels defined in the Readme standard.

benbalter commented 11 years ago

Great catch. Thanks for the pull request!