feat(footnotes): detect more formats of footnote (#3894)

This commit is contained in:
Huang Xin
2026-04-18 23:55:06 +08:00
committed by GitHub
parent 5c97b2e9d8
commit b223ccaee9
2 changed files with 4 additions and 1 deletions
@@ -245,6 +245,9 @@ const FootnotePopup: React.FC<FootnotePopupProps> = ({ bookKey, bookDoc }) => {
if (footnoteClasses.some((cls) => anchor.classList.contains(cls))) {
detail['follow'] = true;
}
if (/^.{0,2}\d+$/.test(anchor.textContent || '')) {
detail['check'] = true;
}
historyRef.current = { items: [detail], index: 0 };
setCanGoBack(false);
canGoBackRef.current = false;