Textile 0+1i

This is a genericisation/port of Brad Choate's mttextile Movable Type Textile plugin. Hopefully at some point, the changes to the core will be incorporated into the main distribution, so this will just be the plugin wrapper. The Textile language was developed by Dean Allen; he has an online demo of the original implementation.

This is a very early release. Image sizing in particular hasn't been tested (and it's not clear that, in the Blosxom system, it really belongs here -- using imagesizer or something similar (my own not-yet(?)-released 'fancyimage', maybe?) makes more sense, I think.

  1. Download the package
  2. Create a 'lib/bradchoate' directory under your Blosxom plugin directory
  3. Copy 'textile.pm' to $plugin_dir/lib/bradchoate
  4. Copy 'textile' to $plugin_dir. You may wish to name it something like '50textile', and rename other plugins with other numbers, to get them loaded in the right order. "The right order" is still somewhat unknown, but I'd suggest using textile before SmartPants but after most other body-modifying plugins (such as macro packages).
  5. Install Rael's meta plugin if you don't already have it installed.
  6. Create a test post; mark it as Textile by using "meta-markup: textile" on
    the line after the title. See the meta documentation for more information
    on meta variables.

Report any problems (or success reports!) to jtl-blosxom-plugins@molehill.org.

Sample:

heading level 1

headling level 2.

Textile works by looking at your text in terms of lines and paragraphs. Paragraphs are composed of one or more lines, separated by a single new-line character. Paragraphs are separated by one or more blank lines.

this is explicitely marked as a paragraph

this is implicitely a paragraph

there are a number of markup items supported

  1. headings
  2. blockquotes
  3. paragraphs
  4. lists
  • unnumbered lists, too
  • and unformatted text
  • and tables
this isa table

There are also inline options like emphasis, strong, cite, deleted, inserted, superscript, subscript, and other HTML attributes.

There can be links too. And images, but there's lots of options there and this post doesn't test any of them.

The way this plugin works, it doesn't automatically invoke the "SmartPants" plugin, but if they're installed properly SmartyPants will get invoked afterwards and it will Just Work anyway...


Same sample, unformatted:

h1. heading level 1 h2. headling level 2. bq. Textile works by looking at your text in terms of lines and paragraphs. Paragraphs are composed of one or more lines, separated by a single new-line character. Paragraphs are separated by one or more blank lines. p. this is explicitely marked as a paragraph this is implicitely a paragraph there are a number of markup items supported # headings # blockquotes # paragraphs # lists * unnumbered lists, too * and unformatted text * and tables | this is | a table | blah blah blah There are also inline options like _emphasis_, *strong*, ??cite??, -deleted-, +inserted+, ^superscript^, ~subscript~, and other HTML(hypertext markup langauge) attributes. There can be "links (this is the title)":http://bradchoate.com/past/mttextile.php too. And images, but there's lots of options there and this post doesn't test any of them. The way this plugin works, it doesn't automatically invoke the "SmartPants" plugin, but if they're installed properly SmartyPants will get invoked afterwards and it will Just Work anyway...

2003-03-08 20:18:00 | Comments (3) | TrackBack (0) | Computers::Internet::Web::Blosxom::Plugins::Textile

Trackback Pings

TrackBack URL for this entry:
http://molelog.molehill.org/~jtl/mt/mt-tb.cgi/541

Comments

aufrank

hey todd—

on the tutorial at http://www.textism.com/tools/textile/index.html, there’s some really cool footnote stuff that you can do with textile. as far as I can tell, it’s not in your implementation of the bradchoate engine… any chance you’re interested in adding it?[1]

thanks for your good work with blosxom,
/au

fn1. this is just one place that I’d expect a footnote to work that I don’t think it will…

2003-07-12 00:33:00

Todd Larason

That’s part of the new “Textile 2” work that Dean & Brad cooked up; sometimes Real Soon Now I’ll write a blosxom-textile2 plugin based on Brad’s perl implementation, but it’s different enough it’s not just a plug-in replacement.

2003-07-12 04:12:00

Peter Gallagher

Hi Todd,
I’d really like to see an update, too, when you can get around to it.

Tried to do this myself but made a bloody mess — one of the infinite number of ways not to get things done in Perl.

Thanks… Peter

2003-07-26 19:02:00

Post a comment




Remember Me?

(you may use HTML tags for style)