Well,
it is a syntax plugin. There is a function: p_render, which can
render a doku content within the renderer of your plugin. It is
expensive, so use it carefully.
It is mentioned for example here:
https://forum.dokuwiki.org/thread/1334
Usage something like: ($out is the text we return after rendering)
...
$tmp = array();
...
$out .= p_render('xhtml',p_get_instructions($your_text_variable),
$tmp);
...
Bests,
T.
#This e-mail is a reply to the message of Jamin Collins
<jcollins@xxxxxxxxxxxxxxxx>, sent on Wed, 12 Sep 2018 08:41:51 -0600:
#"--
Anyone?
On 8/22/18 9:09 AM, Jamin Collins wrote:
I'm adding some features to an existing plugin of mine:#end of previous message"
https://www.dokuwiki.org/plugin:mtg.
I'm trying to allow existing Dokuwiki syntax (like URL links)
within my plugin. I've tried changing my plugin's getType()
response to either 'container' or 'formatting':
public function getType()and adding getAllowedTypes() with the appropriate mode returned in
{
return 'formatting';
}
an array.
public function getAllowedTypes()
{
return array('substition');
}
But have had no success, any pointers?