feat(toc): Collapsible TOC

This commit is contained in:
SiriusXT
2025-05-16 21:25:10 +08:00
parent e946bde939
commit c80d7a3ec3
3 changed files with 128 additions and 6 deletions

View File

@@ -58,6 +58,7 @@ export interface ViewScope {
* toc will appear and then close immediately, because getToc(html) function will consume time
*/
tocPreviousVisible?: boolean;
tocCollapsedHeadings?: Set<string>;
}
interface CreateLinkOptions {