[dokuwiki] Re: can't get my plugin to allow Dokuwiki syntax within it

  • From: Tamás Haraszti <haraszti@xxxxxxxxxxxxxxxxxx>
  • To: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • Date: Thu, 13 Sep 2018 10:04:48 +0200

#This e-mail is a reply to the message of Andreas Gohr
<andi@xxxxxxxxxxxxxx>, sent on Thu, 13 Sep 2018 08:58:04 +0200:

#"
first of all, don't top post please.

[...]  

[...]  

[...]  

Yeah, don't do that. I assume your plugin used to be a substition
type that used addSpecialPattern(). That won't work anymore when you
want to accept other modes. You have to register your entry and exit
patterns separately and then handle matches according to the state
passed to the handler. I recommend rereading
https://www.dokuwiki.org/devel:syntax_plugins and having a look at
plugins that do similar things to what you want.

Andi
#end of previous message"

O.k, then post...

Now, I am working on a calendar plugin with different view modes.
The plugin is a substituting one, and its handler part is quite
simple.
A month is a table of days, a day is a table of hours.
Each event is a link, the content of a day is a nicely formatted wiki
page.
However, when I take an event I have to present a snippet from an
existing wiki page.
I am in 'xhtml' rendering mode. How can I get this wiki snippet from
the other page converted to html properly? When I try the $renterer
-> _xmlEntities($text), I get a text version containing all wiki
elements. Do you have a good example somewhere?

Bests,
Tamás
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: