Re: Re: reST

[email protected]
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
hello,

On Fri, 4 Apr 2003, Wari Wahab wrote:

> Postformatters are plugins that happens after you formatted your text,
> it should look for certain strings in your text and then reformat it to
> whatever.. A glossary postformatter would see '{me}' and expand it to
> '<a href="mailto:[email protected]">Wari Wahab</a>', acronym
> expanders would see 'XHTML' and expand the thing to '<acronym
> title="eXtensible HyperText Markup Language">XHTML</acronym>'.. Kai's
> postformatter in theory, would see (without reST mucking up such markup
> first) !_imgurl(alttext)!, and all hell breaks loose as if the thumbnail
> is not there in the first place, it will actually create the thumbnail
> and then insert the thumbnail image url and link it to the big one..

ahh.  This makes more sense now.  I'll play with it this weekend.

> I attached a modified one and it calls a postformatter (if available)
> after rendering the text (see what you can gain from it, possibilities
> are endless). I've refactored it a bit and now it is also a preformatter
> for plain old files that ends with .txt
>
> See if you like the changes.

Looks great to me, thanks!

Sean



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.