Text::WikiFormat
- module for translating Wiki formatted text into other formats
- In theory it is supposed to become Wiki::Format, or something like that, in the next release
-- fozbaca
Used with MiniWiki
Because there were some things I didn't like about HTML::FromText, just to amuse myself I converted MiniWiki to use Text::WikiFormat. It's generally a good module and well thought out, but there are a number of problems/issues with integrating it, which I thought I'd share.
- Conversion of internal links. T::W can do this, and in the same format as MiniWiki, but if you do that you lose MiniWiki's nice feature of highlighting non-existent pages with a ? On the other hand, if you let MiniWiki do it and switch off "extended" links in T::W, it doesn't spot external links (which must be in extended format -- it won't just convert http://www.example.com in-place like H::F does. Probably a compromise is required.
- More seriously, T::W does not appear to safe-quote the wiki text. HTML tags are passed through. Not only does this make the template screen a mess(!) but it could lead to all sorts of cross-site scripting and nasties if people aren't aware of it. It could also lead to people actually using HTML instead of WikiSpeak which kinda defeats the object (I was bemused to find out that some wikis deliberately accept HTML! What's the point in being a wiki then??!)
--jammin
Hey, thanks for sharing your experiences. If that is the case, then I'll probably hold of with updating the site. If I had more time, I'd evaluate some of the other Wiki modules to see if they could be use, or redesign MiniWiki.pm into seperate modules.
By the way, a totally rewritten version of HTML::FromText is out, as well as 0.91 of MiniWiki. --Wim
See also Perl or MiniWiki