diff options
author | Anika Henke <a.c.henke@arcor.de> | 2006-02-06 01:11:31 +0100 |
---|---|---|
committer | Anika Henke <a.c.henke@arcor.de> | 2006-02-06 01:11:31 +0100 |
commit | c6a1c1bf7492e1cf2e3d485af066eb3903536d80 (patch) | |
tree | 00a3c95ece9f32f4b957c76bf47e282a55142c8f | |
parent | 63afe2a672816009caccc863882c7215115bc306 (diff) | |
download | rpg-c6a1c1bf7492e1cf2e3d485af066eb3903536d80.tar.gz rpg-c6a1c1bf7492e1cf2e3d485af066eb3903536d80.tar.bz2 |
anchors inside headlines
darcs-hash:20060206001131-d5083-cded00c0dd4cffce4986abaea6021cd93e1477f4.gz
-rw-r--r-- | inc/parser/xhtml.php | 4 | ||||
-rw-r--r-- | 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{ |