We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0a3ea commit 27e3f9eCopy full SHA for 27e3f9e
1 file changed
assets/js/shortcuts.js
@@ -110,8 +110,7 @@ function setupShortcuts(shortcutDepth = 2) {
110
if (shortcutsTarget) {
111
const classElements = Array.from(document.querySelectorAll(classes));
112
classElements.map((el) => {
113
- // Get title but remove anchor character #
114
- const title = el.textContent.replace(/#$/, "");
+ const title = el.innerHTML;
115
const elId = el.id;
116
// Gets the element type (e.g. h2, h3)
117
const elType = el.tagName;
0 commit comments