@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
41 lines • 1.74 kB
JavaScript
export var CaptionKind;
(function (CaptionKind) {
CaptionKind["fig"] = "fig";
CaptionKind["eq"] = "eq";
CaptionKind["code"] = "code";
CaptionKind["table"] = "table";
})(CaptionKind || (CaptionKind = {}));
export 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 || (ReferenceKind = {}));
export 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 || (NodeGroups = {}));
export var MarkGroups;
(function (MarkGroups) {
MarkGroups["format"] = "format";
})(MarkGroups || (MarkGroups = {}));
//# sourceMappingURL=types.js.map