@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
21 lines • 638 B
JavaScript
import { NodeGroups } from '../types';
import { createAttr as attr, nodeToMystRole, createSpec } from './utils';
export const def = {
tag: 'r-dynamic',
name: 'r:dynamic',
mystType: 'reactiveDynamic',
attrs: [
attr('value'),
attr('change', 'only'),
attr('format', false),
attr('min', true, '0'),
attr('max', true, '100'),
attr('step', true, '1'),
],
inline: true,
group: NodeGroups.inline,
};
export const spec = createSpec(def);
export const toMarkdown = (state, node) => nodeToMystRole(state, node, def);
export default spec;
//# sourceMappingURL=dynamic.js.map