We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aeaf89 commit 791f1b6Copy full SHA for 791f1b6
src/core/render/tpl.js
@@ -92,7 +92,7 @@ export function tree(toc, tpl = '<ul class="app-sub-sidebar">{inner}</ul>') {
92
let innerHTML = '';
93
let title = '';
94
toc.forEach(node => {
95
- title = node.title.replace(/(<\/?img.*?>)/g, '');
+ title = node.title.replace(/(<([^>]+)>)/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);
0 commit comments