What is the best way to export a notebook as readable plaintext - while preserving as much structure as possible? The motivation here is the need to bulk-ingest notebooks and chunk them (for use in RAG systems).
In such a solution for example:
- textual elements would be stripped of styling
- section headings would be preserved
- cell-tags could be listed underneath cell contents
- For non-text elements - those would be simply replaced with their notebook asset filepaths/hyperlinks
- ...
There were a few legacy answers about exporting to multi-markup/down that are now out of date, but is there any new "best way" to achieve this in v13.3/14?