Separates page body content from trailing footnotes using a marker string. Shamela pages often contain both main content and footnotes separated by a specific marker.
import { splitPageBodyFromFooter } from 'shamela';const pageContent = `متن الكتاب وهو النص الأساسيالذي يحتوي على المحتوى الرئيسي[FOOTNOTE_MARKER][١] هذه هي الحاشية الأولى[٢] وهذه الحاشية الثانية`;const [body, footnotes] = splitPageBodyFromFooter(pageContent);console.log('Body:', body);// => "متن الكتاب وهو النص الأساسي\nالذي يحتوي على المحتوى الرئيسي"console.log('Footnotes:', footnotes);// => "[١] هذه هي الحاشية الأولى\n[٢] وهذه الحاشية الثانية"