@recital/stage-parser
v1.2.0
Published
Script parser for Recital. Converts the Recital document format into a list of scenes with MDX content, which can then be converted into dynamic or interactive stories.
Downloads
1
Readme
Stage Parser
Script parser for Recital. Converts the Recital document format into a list of scenes with MDX content, which can then be converted into dynamic or interactive stories.
Usage
import { parse } from '@recital/stage-parser'
const scenes = parse(text);
for (let scene of scenes) {
const { frontmatter, text } = scene
// handle the scene how you want here
}