@ajfisher/presso-runtime
v0.8.0
Published
Browser rendering runtime and HTML templates for Presso decks.
Downloads
81
Maintainers
Readme
@ajfisher/presso-runtime
Browser rendering runtime and HTML templates for Presso decks.

Presso is a Markdown-native web presentation framework for talks, workshops, speaker notes, static publishing, and PDF export. @ajfisher/presso-runtime renders compiled decks into browser routes, serves the runtime CSS and JavaScript assets, and provides transcript Markdown helpers for publishable talk notes.
Install
npm install @ajfisher/presso-runtimeMost deck authors use this package through @ajfisher/presso-server or @ajfisher/presso-export.
Example
import { renderPage, renderTranscriptMarkdown, readRuntimeAsset } from '@ajfisher/presso-runtime';
const html = renderPage(deck, 'presenter', { public: true });
const transcript = renderTranscriptMarkdown(deck, { profile: 'notes-visuals' });
const css = readRuntimeAsset('presso.css');Public Surface
renderPage(deck, mode, options)renders deck, presenter, notes, control, embed, print, and transcript routes.readRuntimeAsset(name)returns the built runtime CSS or JavaScript file.runtimeAssetNameslists generated runtime assets.renderTranscriptMarkdown,resolveTranscriptProfile, andTRANSCRIPT_PROFILESpower transcript export.
