[Assorted-commits] SF.net SVN: assorted:[1032] wp-easy-filter
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-10-23 03:17:24
|
Revision: 1032 http://assorted.svn.sourceforge.net/assorted/?rev=1032&view=rev Author: yangzhang Date: 2008-10-23 03:17:18 +0000 (Thu, 23 Oct 2008) Log Message: ----------- tagged 0.1 release Added Paths: ----------- wp-easy-filter/tags/ wp-easy-filter/tags/0.1/ wp-easy-filter/tags/0.1/README Removed Paths: ------------- wp-easy-filter/tags/0.1/README Deleted: wp-easy-filter/tags/0.1/README =================================================================== --- wp-easy-filter/trunk/README 2008-10-22 22:58:44 UTC (rev 1030) +++ wp-easy-filter/tags/0.1/README 2008-10-23 03:17:18 UTC (rev 1032) @@ -1,41 +0,0 @@ -Overview --------- - -This is a simple, general filter plug-in for WordPress. You specify a mapping -from tags to commands, such as: - - $tag2cmd = array('pandoc' => '/usr/bin/pandoc -s --tab-stop=2'); - -Then, for posts which are prefixed with a shebang line containing that tag, as in: - - #!pandoc - - Hello, world. - -Then the plug-in will feed the post contents to that command's stdin and return -the rendered output to WordPress for display. - -This plug-in was designed to allow me to start using [Pandoc] for writing my -blog posts. (I couldn't force myself to use the [PHP Markdown Extras] -plug-in.) - -It disables the `wpautop` filter, which automatically inserts `<p>` tags (among -other magic), because that filter cannot properly parse the style of HTML that -Pandoc outputs. - -Setup ------ - -Drop `easyfilt.php` into your `wp-content/plugins/` directory, then activate -the plug-in from the admin interface. - -Notes ------ - -The author of [PHP Markdown Extras] wrote an [informative blog post] describing -problems he had getting his filter to work properly and co-exist with the other -built-in filters. - -[Pandoc]: http://johnmacfarlane.net/pandoc/ -[PHP Markdown Extras]: http://michelf.com/projects/php-markdown/extra/ -[informative blog post]: http://michelf.com/weblog/2005/wordpress-text-flow-vs-markdown/ Copied: wp-easy-filter/tags/0.1/README (from rev 1031, wp-easy-filter/trunk/README) =================================================================== --- wp-easy-filter/tags/0.1/README (rev 0) +++ wp-easy-filter/tags/0.1/README 2008-10-23 03:17:18 UTC (rev 1032) @@ -0,0 +1,40 @@ +Overview +-------- + +This is a simple, general filter plugin for [WordPress]. You specify a mapping +from tags to commands, such as: + + $tag2cmd = array('pandoc' => '/usr/bin/pandoc -s --tab-stop=2'); + +Then, for any posts which start with a shebang line containing that tag, as in: + + #!pandoc + Hello, world. + +the plugin will feed the post contents (minus the shebang line) to the mapped +command's stdin, and return the rendered output to WordPress for display. + +This plugin was designed to allow me to start using [Pandoc] for writing my +blog posts. (I couldn't force myself to use the [PHP Markdown Extras] plugin.) + +It disables the `wpautop` filter, which automatically inserts `<p>` tags (among +other magic), because that filter cannot properly parse the style of HTML that +Pandoc outputs. + +Setup +----- + +Drop `easyfilt.php` into your `wp-content/plugins/` directory, then activate +the plugin from the admin interface. + +Related Links +------------- + +The author of [PHP Markdown Extras] wrote an [informative blog post] describing +problems he had getting his filter to work properly and co-exist with the other +built-in filters. + +[WordPress]: http://www.wordpress.org/ +[Pandoc]: http://johnmacfarlane.net/pandoc/ +[PHP Markdown Extras]: http://michelf.com/projects/php-markdown/extra/ +[informative blog post]: http://michelf.com/weblog/2005/wordpress-text-flow-vs-markdown/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |