WP README Parser
WP README Parser will display a WordPress plugin's README file in XHTML format, for embedding on a post or page.
Description
WordPress README files are formatted using a version of the Markdown language. This plugin can be used to convert these to XHTML and, hence, displayed, formatted for post or page.
WP README Parser is operated via a WordPress shortcode, the basic syntax of which is...
[readme]Plugin name[/readme]
Where "Plugin Name" is the name of the plugin in question - in this case the README will be read from the WordPress repository. Alternatively, you can specify a URL for where the README file is held.
The README will then be shown. The only part of the file that is excluded automatically is the first heading, which is the name of the plugin - it is assumed that you have already added this to your post/page or are using it as the title.
A number of optional parameters can be used...
exclude
Each README is divided into a number of section. If you wish to exclude any from the output then use this parameter to list them.
Before the first section (usually "Description") is a number of pieces of "meta data" about the plugin, including tags, etc. Links are automatically added to these. If, however, you wish to just exclude this data then you should use the section name of "meta". Underneath this data is a short description which will remain in this case. If you want to remove this description and the meta data then use the section name of "head". If you wish to just remove a particular bit of meta data then specify contributors, donate, tags, requires, tested or stable.
For example...
[readme exclude=Meta,Changelog]Plugin name[/readme]
This will display the entire README with the exception of the Changelog and the Plugin meta.
ignore
Different from exclude this allows to ignore specific lines of the README. Multiple lines should be seperated by double commas (to allow single commas to be be used in the actual line to be ignored). For example...
[readme ignore='this line,,and this line']Plugin name[/readme]
ext
If screenshots are present then these will be displayed. By default .PNG images will be shown - if the screenshots are in another format, then specify this here (.gif, .jpg or .jpeg). Mixed types are not supported.
For example...
[readme ext=gif]Plugin name[/readme]
target
Any links will have a target of _blank. If you wish this to be anything else then change it with this parameter. For example...
[readme target=_self]Plugin name[/readme]
nofollow
If you wish a link to have a nofollow option (i.e. the tag of rel="nofollow") then specify this as "Yes". By default it won't. For example...
[readme nofollow=Yes]Plugin name[/readme]
Using Simple Content Reveal
If you also have the plugin Simple Content Reveal installed, then each section of the README will be collapsable - that is, you can click on the section heading to hide the section content.
By default, all sections of the output will be revealed.
You may now use 3 further parameters when using the [readme] shortcode...
hide
Use this parameter to hide sections automatically - simply click on them to reveal them again.
For example...
[readme hide=Changelog]Plugin name[/readme]
scr_url
If you wish to supply your own hide/reveal images then you can specify your own folder here.
The two images (one for when the content is hidden, another for when it's shown) must be named image1 and image2. They can either by GIF or PNG images (see the next parameter).
For example...
[readme scr_url="http://www.artiss.co.uk"]Plugin name[/readme]
scr_ext
Use this specify whether you wish to use PNG or GIF images for your own hide/reveal images. If you do not specify it, GIF will be used.
For example...
[readme scr_url="http://www.artiss.co.uk" scr_ext=png]Plugin name[/readme]
Licence
This WordPRess plugin is licensed under the GPLv2 (or later).
Reviews & Mentions
WPCandy - WP README Parser Plugin converts Plugin's readme into blog-ready XHTML
Acknowledgements
WP README Parser uses PHP Markdown Extra by Michel Fortin.
Installation
- Upload the entire
wp-readme-parserfolder to yourwp-content/plugins/directory. - Activate the plugin through the WordPress 'Plugins' menu.
- Insert the shortcode into any posts or pages - no settings screen exists.
Frequently Asked Questions
Can I change the look of the output?
You can. The whole output is encased in a <div> with an id of np- followed by the plugin name (lower case and spaces converted to dashes).
Each section that has a <div> around it with an id of np- followed by the section name (lower case and spaces converted to dashes).
The download link has an additional <div> around it with an id of np-download-link.
Screenshots have a <div> with an id of np-screenshotx, where x is the screenshot number.
Each of these div's can therefore be styled using your theme stylesheet.
Which version of PHP does this plugin work with?
It has been tested and been found valid from PHP 4 upwards.
How can I get help or request possible changes
Feel free to report any problems, or suggestions for enhancements, to me via my forum or my contact form. However, please check the dedicated plugin page first for any known bugs or planned enhancements.
Changelog
1.1.1
- Updated Markdown Extra script to latest version - this fixes a number of bugs
1.1
- Improved code display - particularly code multi-lines
- Fixed file fetching bug
- New option to suppress specific lines
1.0.2
- Screenshots will now be picked from trunk or tag folders, depending on stable tag
- Improved handling of download link and version numbers
1.0.1
- Fix bug where download link didn't work if "Stable Tag" meta was excluded
- Added check for malformed README file where there are no carriage returnes
- Output download version number
1.0
- Initial release

Known Bugs
View the Roadmap for WP README Parser
View the Change Log for WP README Parser
View the News Feed for WP README Parser- Use nofollow and target on tag links [View]
Planned Enhancements
View the Roadmap for WP README Parser
View the Change Log for WP README Parser
View the News Feed for WP README Parser- Add ability to have README inline [View]
- Suppress translation on code output [View]
- Option to output banner [View]
- Add caching of output [View]
- Bring code up-to-date [View]
- Add plugin API data [View]
- Resolve WP Debug errors [View]
- Option to specify position of download links [View]
- Download mirrors [View]
- Option to specify version [View]
Support Forum
Please use the forum for reporting any problems, queries or suggestions relating to this plugin.











Earn cashback when shopping online.
Artiss.co.uk is checked by