Posted on: 09/06/04 07:44pm
By: Anonymous (Rick Measham)
(It probably has a better name, but I call it WiML for Wiki Markup Language)
Is there an existing plugin to allow users to select WiML for their Post Mode?
The default installation lets users select 'Plain Old Text' or 'HTML Formatted'. I'd like a third option for WiML (that I could set as default). WiML allows links like [http://mysite/|This is my site] and many other conventions seen in Wikis.
(If this is done, or it's possible, I'd eventually also like to include POD for entering text in POD format ... but that's down the track)
Cheers!
Rick
WiML Post Mode
Posted on: 09/13/04 08:42pm
By: magomarcelo
I am currently using
PHP Markdown[*1] 1.0.
To integrate it, I modified the
COM_article
function within
lib-common.php
:
if( $A['postmode'] == 'plaintext' )
{
$A['introtext'] = Markdown( $A['introtext'] );
$A['bodytext'] = Markdown( $A['bodytext'] );
/*
$A['introtext'] = nl2br( $A['introtext'] );
$A['bodytext'] = nl2br( $A['bodytext'] );
*/
}
You also need the
markdown.php
file somewhere and a call to include_once for it within
lib-common.php
.