UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

14 lines 539 B
import { NodeGroups } from '../types'; import { createAttr as attr, createSpec, DEFAULT_FORMAT, nodeToMystDirective } from './utils'; export const def = { tag: 'r-var', name: 'r:var', mystType: 'reactiveVariable', attrs: [attr('name', false, false), attr('value'), attr('format', false, DEFAULT_FORMAT)], inline: false, group: NodeGroups.top, }; const spec = createSpec(def); export const toMarkdown = (state, node) => nodeToMystDirective(state, node, def); export default spec; //# sourceMappingURL=variable.js.map