diff --git a/src/components/EPUBViewer.tsx b/src/components/EPUBViewer.tsx index 63568be..0dcc75e 100644 --- a/src/components/EPUBViewer.tsx +++ b/src/components/EPUBViewer.tsx @@ -22,6 +22,7 @@ export function EPUBViewer({ className = '' }: EPUBViewerProps) { const { currDocData, currDocName, + currDocText, // added for Fork1 locationRef, handleLocationChanged, bookRef, @@ -59,7 +60,7 @@ export function EPUBViewer({ className = '' }: EPUBViewerProps) { registerLocationChangeHandler(handleLocationChanged); }, [registerLocationChangeHandler, handleLocationChanged]); - if (!currDocData) { + if (!currDocData) { return ; } @@ -82,6 +83,23 @@ export function EPUBViewer({ className = '' }: EPUBViewerProps) { }} /> + + {/* Plain-text mirror of the current EPUB page for tools like Migaku */} + {currDocText && ( + + )} ); -} \ No newline at end of file +}