1.2.0 • Published 4 years ago
@recital/stage-parser v1.2.0
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
}
1.2.0
4 years ago