[dokuwiki] Geshi keyword links

  • From: Chris Tapp <opensource@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 11 May 2017 11:35:02 +0100

I have a renderer that uses p_xhtml_cached_geshi to output code fragments. 
Caching is useful as there are potentially hundreds of them.

The rendered output includes links to external sources for keywords and I need 
to be able to stop these from being added.

Geshi includes enable_keyword_links() that can be called to disable generation 
of the links, but this cannot currently be called when using 
p_xhtml_cached_geshi.

Is there any way to achieve this at the moment? If not, I can either modify my 
code to use a modified clone of p_xhtml_cached_geshi, or I could create a patch 
to modify p_xhtml_cached_geshi() by adding a defaulted fourth parameter that is 
passed to geshi, making sure that the default behaviour is the same as it is 
now.

Would such a patch be of any value?

--

Chris Tapp
opensource@xxxxxxxxxxxx
www.keylevel.com

--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: