@a-morphous/recital-ext-common-commands
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Common Commands Extension

Provides a set of tools that are useful when used alongside stage-parser.

Most of the tools operate on the FlatObject[] array that is generated by stage-parser's genFlattenedObject function.

List of Tools

convertWikiLinkToMd

Converts all the wiki links in a .stage file into valid Markdown links.

Wiki links have the format [[link]], and can also have an arrow to have text separate from the destination, e.g. [[This is the displayed text->destination]]. This format is inspired directly from Chapbook's simple link format.

resolveIncludes

Parses a recital file for the $include tag, which link to a separate .stage file whose contents are inserted at the location of the original $include command.

The include command's usage is:

$include <file to include> <raw?: boolean>

'raw' determines whether we process the included stage file for more includes, or just leave the text unprocessed.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.32latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.32
1.1.20

Package Sidebar

Install

npm i @a-morphous/recital-ext-common-commands

Weekly Downloads

2

Version

1.1.3

License

MPL 2.0

Unpacked Size

90.8 kB

Total Files

43

Last publish

Collaborators

  • amorphous