forked from akai/readest
feat(footnotes): detect more formats of footnote (#3894)
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
Submodule packages/foliate-js updated: 7657c78bd8...2bf0cecfcd
Reference in New Issue
Block a user