Open ben-github opened 10 years ago
By including the following p_render call in your php function it picks
up some dokuwiki syntax like bold and italics but not the headings or
new lines. I do not know why
<?php $thisfunction = function($params){ $out = '===Heading=== // '; $out .= 'Input of ' . $params[0] . ' in bold. // '; $out = p_render('xhtml',p_get_instructions($out),$info); return $out; };
Tom
Quoting ben-github notifications@github.com:
Is there a way to get the output of my php function get parsed by
dokuwiki? I'd like to have:$thisfunction = function($params){ $out = "=== Heading ===\n"; $out .= "Input of **" . $params[0] . "** in bold.\n"; return $out; }
Where the heading and bold wiki syntax gets parsed into the document output.
Thanks,
Reply to this email directly or view it on GitHub: https://github.com/TomCafferty/plugin-function/issues/4
Thanks -- that helped. One follow up question though -- I have a heading in my php function (see above) how can I get that heading to be included in the table of contents that dokuwiki generates?
Thanks,
Did you get the heading to show up from the php function? It did not
work for me. Just the italics and bold formatting. I do not know whow
to get it to show in the TOC
Tom
Thanks -- that helped. One follow up question though -- I have a
heading in my php function (see above) how can I get that heading to
be included in the table of contents that dokuwiki generates?Thanks,
Reply to this email directly or view it on GitHub: https://github.com/TomCafferty/plugin-function/issues/4#issuecomment-29914413
I did -- still stuck on the table of contents though. I edited the plugin (syntax.php) earlier trying to get it to work and changed the
function getSort(){ return 195; }
to a lower value (0 I think, maybe 67) -- maybe that mattered. It didn't help without the p_render, but I left it is, so maybe it helped.
Let me know if that doesn't do it, I also played with the gettType stuff, but I'd have to check what I actually changed.
Is there a way to get the output of my php function get parsed by dokuwiki? I'd like to have:
Where the heading and bold wiki syntax gets parsed into the document output.
Thanks,