UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

14 lines 515 B
import { NodeGroups } from '../types'; import { createAttr as attr, nodeToMystRole, createSpec } from './utils'; export const def = { tag: 'r-display', name: 'r:display', mystType: 'reactiveDisplay', attrs: [attr('value'), attr('format', false), attr('transform', 'only', '')], inline: true, group: NodeGroups.inline, }; export const spec = createSpec(def); export const toMarkdown = (state, node) => nodeToMystRole(state, node, def); export default spec; //# sourceMappingURL=display.js.map