You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found myself patching bootstrap-toc with the following patch to remove ¶ from the end of headers that are frequently generated by anchor-links. These '¶' symbols are usually displayed when the title is hovered over, but would always be displayed in TOC generated by boostrap-toc. I can create a PR but it seems that this project is no longer merging PRs.
--- a/bootstrap-toc.js
+++ b/bootstrap-toc.js
@@ -89,7 +89,7 @@
generateNavItem: function(headingEl) {
var anchor = this.generateAnchor(headingEl);
var $heading = $(headingEl);
- var text = $heading.data("toc-text") || $heading.text();
+ var text = $heading.data("toc-text") || $heading.text().replace('´', '').replace('¶', '');
return this.generateNavEl(anchor, text);
},
The text was updated successfully, but these errors were encountered:
I found myself patching
bootstrap-toc
with the following patch to remove¶
from the end of headers that are frequently generated by anchor-links. These '¶' symbols are usually displayed when the title is hovered over, but would always be displayed in TOC generated byboostrap-toc
. I can create a PR but it seems that this project is no longer merging PRs.The text was updated successfully, but these errors were encountered: