Using reStructuredText with WordPress

I just converted most of my posts to use reStructuredText, using the same plugin my old "webrog" blog used. Because I haven't seen any recent posts that make mention of this, I thought I'd post here about it in case anyone else looks for the same thing.

The only thing I had to do was edit my wp-content/themes/default/index.php file to change the text "Read the rest of this entry" in the call to the_content on line 14 to this instead:

<?php the_content('(more...)'); ?>

Alternatively, you could edit the plugin itself to better handle "more" tags within entries.

Happy reST+WordPress blogging!

Update 2007-09-08: This plugin is now a Launchpad project (see the announcement). The link above has been updated accordingly. If you are looking for a way to download the latest rest.php file containing the plugin, view the files for the project, then click the Download link on the right-hand side of the rest.php row.

Tags: , , , ,

5 Responses to “Using reStructuredText with WordPress”

  1. Christof Hoeke Says:

    Great to know, I definitely try this out on my blog!

  2. Pupeno's web site Says:

    ReStructured Text on WordPress…

    I am coming from the Plone world. My web site used to be Plone and various website I still maintain are still Plone-based. In Plone, one of the formats to write text is ReStructured Text (RST); and Matt has convinced me it is the right way… or…

  3. James Gardner » Using reStructuredText with Wordpress Says:

    [...] http://goldenspud.com/rotr/index.php/2006/12/15/using-restructuredtext-with-wordpress/ http://blog.ianbicking.org/2007/08/01/new-blog-software/ [...]

  4. ROTR » reStructuredText for WordPress is now a Launchpad project Says:

    [...] reStructuredText for WordPress project now has a home on [...]

  5. Los, nach China! » Blog Archive » New Blog powered by WordPress & reST Says:

    [...] Using reST with WordPress [...]

Leave a Reply