Skip to content

Commit 791f1b6

Browse files
committed
fix #1408
1 parent 8aeaf89 commit 791f1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/render/tpl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function tree(toc, tpl = '<ul class="app-sub-sidebar">{inner}</ul>') {
9292
let innerHTML = '';
9393
let title = '';
9494
toc.forEach(node => {
95-
title = node.title.replace(/(<\/?img.*?>)/g, '');
95+
title = node.title.replace(/(<([^>]+)>)/g, '');
9696
innerHTML += `<li><a class="section-link" href="${node.slug}" title="${title}">${node.title}</a></li>`;
9797
if (node.children) {
9898
innerHTML += tree(node.children, tpl);

0 commit comments

Comments
 (0)