-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
51 lines (34 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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.
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.
Changes
-------
version 0.2, 2008-10-23
- fixed debugging code
version 0.1, 2008-10-22
- initial release
[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/