
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
whatastory-mark-parser
Advanced tools
A markup language for storyboards. This is just the parser component.
This is the parser component of wnatastory-mark. It takes a document (a string representation of a storyboard written in whatastory-mark) and outputs an object representation of that document.
const opts = {
panelSeparator: /^==+/,
subpanelSeparator: /^--+/,
panelItemMatchers: {
modifiers: /^\((.*)\)$/,
sfx: /^<(.*)>$/,
caption: /^\[(.*)\]$/,
dialog: /^"(.*)"$/
},
allowedModifiers: [
'frameless',
'narrow',
'wide',
'tall',
'short'
]
}
// configure the parser
const parser = require('whatastory-mark-parser')(opts)
// set up a template; you can use handlebars, pug or any of those
const rendererSource = require('./my-renderer.handlebars')
const render = Handlebars.compile(rendererSource)
// parse and feed the result to the template
const data = parser.parse(source)
const result = render(data)
console.log(result)
panelSeparator - Regular expression used for detecting panel delimiters.subpanelSeparator - Regular expression used for detecting subpanel delimiters.panelItemMatchers - Regular expressions used for detecting panel items.modifiers - Regular expression used for detecting lists of modifiers.allowedModifiers - List of known modifiers. Unrecognized modifiers will be ignored.FAQs
A markup language for storyboards. This is just the parser component.
We found that whatastory-mark-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.