I've released version 1.1.0 of Postmarkup. The main improvements are that it generates cleaner html, that doesn't include invisible div sections, and that it should also generate XHTML that validates (previous versionsĀ  could put block tags inside inline tags for some bbcode).

The basic interface is the same, so it should be a drop in replacement for most people. TheĀ  base class for tags has changed (but not significantly), so if you have any custom tags, it will require a little work to get them functional again. See postmarkup.py for example tags.

I actually quite like bbcode as a light-weight markup. Possibly I'm rationalising, as I've spent a couple of days polishing it when I should be job-hunting! Its great for its original purpose, of letting forum users format text, but it could be used as a more friendly alternative to XML. It's also higher level than (X)HTML in that a tag can generate intelligent content rather that simply applying a style.

Now I have to find some other project to keep me entertained before I re-join the rat race!

This blog post was posted to It's All Geek to Me on Tuesday June 24th, 2008 at 4:31PM
 

Leave a Comment

You can use bbcode in the comment: e.g. [b]This is bold[/b], [url]http://www.willmcgugan.com[/url], [code python]import this[/code]
Preview Posting...
Previewing comment, please wait a moment...

My Tweets

Will McGugan

My name is Will McGugan. I am an unabashed geek, an author, a hacker and a Python expert – amongst other things!

Search for Posts
Possibly related posts
Tags
 
Popular Tags
 
Archives
2009
 
Recent Comments
Hi Will, I brought your book from Amazon. I think its a great book. It has given me everything i ...
- P K on A bad review
yeah! red hair looks good!! thanks 4 your help in our project in science under maam b.
you have a nice decision.
@ Anatoliy But this is, hopefully, what you're looking for. His library is extensive enough that it provide the features ...
Thanks for this. I started writing my own and was starting to get a little frustrated when a friend pointed ...
- Ahlywog on BBCode Python Module
 
© 2008 Will McGugan.

A technoblog blog, design by Will McGugan