1.2.0 • Published 4 years ago

@recital/stage-parser v1.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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
}