summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 9518cd12e..3c71bb54e 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -389,17 +389,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
} else {
//strip leading blank line
$text = preg_replace('/^\s*?\n/','',$text);
- // Handle with Geshi here
- require_once(DOKU_INC . 'inc/geshi.php');
- $geshi = new GeSHi($text, strtolower($language), DOKU_INC . 'inc/geshi');
- $geshi->set_encoding('utf-8');
- $geshi->enable_classes();
- $geshi->set_header_type(GESHI_HEADER_PRE);
- $geshi->set_overall_class("code $language");
- $geshi->set_link_target($conf['target']['extern']);
-
- $text = $geshi->parse_code();
- $this->doc .= $text;
+ $this->doc .= p_xhtml_cached_geshi($text, $language);
}
}