We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf9fd8 commit 8aeaf89Copy full SHA for 8aeaf89
src/core/render/tpl.js
@@ -90,8 +90,10 @@ export function tree(toc, tpl = '<ul class="app-sub-sidebar">{inner}</ul>') {
90
}
91
92
let innerHTML = '';
93
+ let title = '';
94
toc.forEach(node => {
- innerHTML += `<li><a class="section-link" href="${node.slug}" title="${node.title}">${node.title}</a></li>`;
95
+ title = node.title.replace(/(<\/?img.*?>)/g, '');
96
+ innerHTML += `<li><a class="section-link" href="${node.slug}" title="${title}">${node.title}</a></li>`;
97
if (node.children) {
98
innerHTML += tree(node.children, tpl);
99
0 commit comments