summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/xhtml.php4
-rw-r--r--lib/tpl/default/design.css4
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{