You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by wolfgangpue <wo...@gmx.net> on 2009/02/17 18:20:20 UTC
Plugin after "heading"
How its possible to insert a plugin after the anchor of every heading? The
plugin shall be inserted automatically on every wiki site.
The source code of the anchor is in the file JSPWikiMarkupParser.java
(method "closeHeadings()"). But how can i manage this with a plugin without
changing the JSPWikiMarkupParser.java
--
View this message in context: http://www.nabble.com/Plugin-after-%22heading%22-tp22062003p22062003.html
Sent from the JspWiki - User mailing list archive at Nabble.com.
Re: Plugin after "heading"
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Write a WikiFilter which inserts your plugin.
You can either hook to the preTranslate() -section, in which case you
will need to look for any lines beginning with ! and insert
WikiMarkup; or you can hook to the postTranslate(), in which case you
try to find the <h?> -tags, and insert direct HTML.
Up to you :-)
/Janne
On 17 Feb 2009, at 19:20, wolfgangpue wrote:
>
> How its possible to insert a plugin after the anchor of every
> heading? The
> plugin shall be inserted automatically on every wiki site.
>
> The source code of the anchor is in the file JSPWikiMarkupParser.java
> (method "closeHeadings()"). But how can i manage this with a plugin
> without
> changing the JSPWikiMarkupParser.java
> --
> View this message in context: http://www.nabble.com/Plugin-after-%22heading%22-tp22062003p22062003.html
> Sent from the JspWiki - User mailing list archive at Nabble.com.