From c6a1c1bf7492e1cf2e3d485af066eb3903536d80 Mon Sep 17 00:00:00 2001 From: Anika Henke <a.c.henke@arcor.de> Date: Mon, 6 Feb 2006 01:11:31 +0100 Subject: [PATCH] anchors inside headlines darcs-hash:20060206001131-d5083-cded00c0dd4cffce4986abaea6021cd93e1477f4.gz --- inc/parser/xhtml.php | 4 ++-- lib/tpl/default/design.css | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index d9c750220..31246125b 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -132,9 +132,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $this->lastsec = $pos; } - $this->doc .= DOKU_LF.'<a name="'.$this->_headerToLink($text).'" id="'.$this->_headerToLink($text).'"></a><h'.$level.'>'; + $this->doc .= DOKU_LF.'<h'.$level.'><a name="'.$this->_headerToLink($text).'" id="'.$this->_headerToLink($text).'">'; $this->doc .= $this->_xmlEntities($text); - $this->doc .= "</h$level>".DOKU_LF; + $this->doc .= "</a></h$level>".DOKU_LF; } function section_open($level) { diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index 5bf8797d3..9462e6c52 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -197,6 +197,10 @@ a:hover { color:__black__; text-decoration:underline; } +h1 a, h2 a, h3 a, h4 a, h5 a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover { + color:__black__; + text-decoration:none; +} /* external link */ a.urlextern{ -- GitLab