Merge pull request #3143 from minrk/heading-fixup

minor heading-link tweaks
pull/37/head
Matthias Bussonnier 13 years ago
commit 6a39864c54

@ -516,13 +516,14 @@ var IPython = (function (IPython) {
HeadingCell.prototype.set_rendered = function (text) {
var r = this.element.find("div.text_cell_render");
r.empty();
var link = text.replace(/ /g, '_');
r.append(
$('<h'+this.level+'/>')
.append(
$('<a/>')
.addClass('heading-anchor')
.attr('href', '#' + text)
.attr('name', text)
.attr('href', '#' + link)
.attr('id', link)
.html(text)
)
);

@ -469,7 +469,7 @@ margin-bottom:0;
}
a.heading-anchor:link {
a.heading-anchor:link, a.heading-anchor:visited {
text-decoration: none;
color: inherit;
}

Loading…
Cancel
Save