Skip to content
Snippets Groups Projects
Commit c6a1c1bf authored by Anika Henke's avatar Anika Henke
Browse files

anchors inside headlines

darcs-hash:20060206001131-d5083-cded00c0dd4cffce4986abaea6021cd93e1477f4.gz
parent 63afe2a6
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment