Pull the text out of a presentation
Titles, bullets and speaker notes, in slide order.
Loading the example…
A deck extracts as a sequence of slides rather than a flow of prose, and the useful thing is that each piece of text knows which slide and which placeholder it came from. Speaker notes come out too, which is usually where the actual argument of a presentation is written down.
import { extractMarkdown } from '@genomdev/genom';
// Headings stay headings, tables stay tables, and the document's own
// list numbers come out as text rather than as CSS.
const markdown = await extractMarkdown(file); // quarterly.pptx