Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/shamela/llms.txt
Use this file to discover all available pages before exploring further.
Overview
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.Signature
Parameters
Combined body and footnote text
Marker indicating the start of footnotes. Defaults to
FOOTNOTE_MARKER constant from the library.Returns
A tuple containing:
Behavior
- If the marker is not found, returns the entire content as body with an empty footnote string
- The marker itself is excluded from both the body and footnote sections
- Returns a readonly tuple for type safety
Example
Processing Pipeline
Typical usage in a content processing pipeline:Related Functions
mapPageCharacterContent()- Normalize content before splittingremoveTagsExceptSpan()- Clean HTML before splitting