@vmprint/mkd-screenplay
v1.0.2
Published
Markdown → VMPrint DocumentInput transmuter with screenplay defaults.
Readme
@vmprint/mkd-screenplay
Markdown to VMPrint DocumentInput transmuter with built-in screenplay defaults.
This transmuter mirrors screenplay semantics from draft2final, including title-page metadata routing, scene-heading recognition, dialogue/parenthetical handling, and dual-dialogue emission.
Features
- Zero file access. No
fs, no Node-specific loading. - No engine dependency. Types remain structurally compatible with
@vmprint/engine. - Built-in screenplay config and theme defaults.
- Caller overrides for
themeandconfig. - Images via data URIs or caller-supplied resolver callback.
Installation
npm install @vmprint/mkd-screenplayUsage
import { transmute } from '@vmprint/mkd-screenplay';
const doc = transmute(markdown);API
type ScreenplayTransmuteOptions = {
theme?: string;
config?: string;
resolveImage?: (src: string) => { data: string; mimeType: 'image/png' | 'image/jpeg' } | null;
};
function transmute(markdown: string, options?: ScreenplayTransmuteOptions): DocumentInput;Licensed under the Apache License 2.0.
