Skip to content

Commit

Permalink
fix: #1014 修复engine.makeHtml报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Jan 9, 2025
1 parent bb6f5bf commit 5a5e8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hooks/Toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default class Toc extends ParagraphBase {
const lines = calculateLinesOfParagraph(preLinesMatch, 1);
let ret = `<div class="${this.tocContainerClass}${this.showAutoNumber ? ' auto-num-toc' : ''}"
data-sign="${dataSign}-${lines}" data-lines="${lines}">`;
ret += `<p class="${this.tocTitleClass}">${this.$locale.toc}</p>`;
ret += `<p class="${this.tocTitleClass}">${this.$locale?.toc ?? '目录'}</p>`;
if (arr.length <= 0) {
return '';
}
Expand Down

0 comments on commit 5a5e8f9

Please sign in to comment.