@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
18 lines • 747 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.toMarkdown = exports.spec = exports.def = void 0;
const types_1 = require("../types");
const utils_1 = require("./utils");
exports.def = {
tag: 'r-button',
name: 'r:button',
mystType: 'reactiveButton',
attrs: [(0, utils_1.createAttr)('label', true, 'Click Here'), (0, utils_1.createAttr)('click', 'only'), (0, utils_1.createAttr)('disabled')],
inline: true,
group: types_1.NodeGroups.inline,
};
exports.spec = (0, utils_1.createSpec)(exports.def);
const toMarkdown = (state, node) => (0, utils_1.nodeToMystRole)(state, node, exports.def);
exports.toMarkdown = toMarkdown;
exports.default = exports.spec;
//# sourceMappingURL=button.js.map
;