put the anchor inside the header tag

instead of the other way around.

This way, only clicking the text loads the hash link,
rather than the whole area.
pull/37/head
MinRK 13 years ago
parent 7e6b5d98c7
commit ede5a66198

@ -517,12 +517,12 @@ var IPython = (function (IPython) {
var r = this.element.find("div.text_cell_render");
r.empty();
r.append(
$('<a/>')
.addClass('heading-link')
.attr('href', '#' + text)
.attr('name', text)
$('<h'+this.level+'/>')
.append(
$('<h'+this.level+'/>')
$('<a/>')
.addClass('heading-link')
.attr('href', '#' + text)
.attr('name', text)
.html(text)
)
);

Loading…
Cancel
Save