@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
44 lines • 2 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarkGroups = exports.NodeGroups = exports.ReferenceKind = exports.CaptionKind = void 0;
var CaptionKind;
(function (CaptionKind) {
CaptionKind["fig"] = "fig";
CaptionKind["eq"] = "eq";
CaptionKind["code"] = "code";
CaptionKind["table"] = "table";
})(CaptionKind = exports.CaptionKind || (exports.CaptionKind = {}));
var ReferenceKind;
(function (ReferenceKind) {
ReferenceKind["cite"] = "cite";
ReferenceKind["link"] = "link";
ReferenceKind["sec"] = "sec";
ReferenceKind["fig"] = "fig";
ReferenceKind["eq"] = "eq";
ReferenceKind["code"] = "code";
ReferenceKind["table"] = "table";
})(ReferenceKind = exports.ReferenceKind || (exports.ReferenceKind = {}));
var NodeGroups;
(function (NodeGroups) {
NodeGroups["top"] = "topblock";
NodeGroups["block"] = "block";
NodeGroups["heading"] = "heading";
NodeGroups["blockOrHeading"] = "(block | heading)+";
NodeGroups["blockOrEquation"] = "(block | equation)+";
NodeGroups["blockOrEquationOrHeading"] = "(block | heading | equation)+";
NodeGroups["inline"] = "inline";
NodeGroups["text"] = "text";
NodeGroups["cite"] = "cite";
// This allows you to drag images in/out and reposition the figure caption
// It does mean that the figure can be empty, which is not good
// We need to delete this empty figure in a post processing step
// This also allows two figure captions
// 'insideFigure' = 'figcaption{0,1} (image | code_block | iframe | table)* figcaption{0,1}',
// 'insideFigure' = '(figcaption | image | code_block | iframe | table)+',
NodeGroups["insideFigure"] = "(figcaption | image | iframe | table | code_block){1,2}";
})(NodeGroups = exports.NodeGroups || (exports.NodeGroups = {}));
var MarkGroups;
(function (MarkGroups) {
MarkGroups["format"] = "format";
})(MarkGroups = exports.MarkGroups || (exports.MarkGroups = {}));
//# sourceMappingURL=types.js.map
;