highmark-markdown 0.0.278 → 0.0.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example.js +2227 -3002
- package/lib/elementMap.js +16 -34
- package/lib/example/view.js +2 -2
- package/lib/markdown/bnf.js +2 -2
- package/lib/markdown/entries.js +11 -23
- package/lib/node/markdown/{contents.js → directive/contents.js} +11 -11
- package/lib/node/markdown/{embee.js → directive/embee.js} +12 -12
- package/lib/node/markdown/{footnotes.js → directive/footnotes.js} +11 -11
- package/lib/node/markdown/{tableSeparator.js → directive/ignore.js} +11 -11
- package/lib/node/markdown/{include.js → directive/include.js} +11 -11
- package/lib/node/markdown/directives.js +2 -2
- package/lib/node/markdown/division.js +15 -15
- package/lib/node/markdown/error.js +22 -2
- package/lib/node/markdown/footnote.js +7 -3
- package/lib/node/markdown/orderedListItem.js +37 -3
- package/lib/node/markdown/paragraph.js +33 -2
- package/lib/node/markdown/stronglyEmphasisedText.js +2 -1
- package/lib/node/markdown/tableCell.js +2 -2
- package/lib/node/markdown/unorderedListItem.js +33 -2
- package/lib/nodeMap.js +7 -13
- package/lib/ruleNames.js +23 -53
- package/lib/tokenTypes.js +23 -48
- package/lib/utilities/childNodes.js +3 -1
- package/lib/utilities/index.js +28 -0
- package/lib/utilities/query.js +39 -48
- package/package.json +1 -1
- package/src/elementMap.js +25 -55
- package/src/example/view.js +2 -3
- package/src/markdown/bnf.js +98 -109
- package/src/markdown/entries.js +10 -22
- package/src/node/markdown/{contents.js → directive/contents.js} +3 -3
- package/src/node/markdown/{embee.js → directive/embee.js} +4 -4
- package/src/node/markdown/{footnotes.js → directive/footnotes.js} +3 -3
- package/src/node/markdown/directive/ignore.js +7 -0
- package/src/node/markdown/{include.js → directive/include.js} +3 -3
- package/src/node/markdown/directives.js +1 -2
- package/src/node/markdown/division.js +23 -24
- package/src/node/markdown/error.js +29 -1
- package/src/node/markdown/footnote.js +12 -3
- package/src/node/markdown/orderedListItem.js +48 -3
- package/src/node/markdown/paragraph.js +37 -0
- package/src/node/markdown/stronglyEmphasisedText.js +2 -0
- package/src/node/markdown/tableCell.js +1 -1
- package/src/node/markdown/unorderedListItem.js +37 -0
- package/src/nodeMap.js +15 -33
- package/src/ruleNames.js +10 -22
- package/src/tokenTypes.js +10 -20
- package/src/utilities/childNodes.js +4 -0
- package/src/utilities/index.js +13 -0
- package/src/utilities/query.js +38 -46
- package/lib/node/markdown/bullet.js +0 -120
- package/lib/node/markdown/ignore.js +0 -120
- package/lib/node/markdown/line.js +0 -137
- package/lib/node/markdown/lineBreak.js +0 -134
- package/lib/node/markdown/marker.js +0 -130
- package/lib/node/markdown/reference.js +0 -130
- package/src/node/markdown/bullet.js +0 -7
- package/src/node/markdown/ignore.js +0 -7
- package/src/node/markdown/line.js +0 -31
- package/src/node/markdown/lineBreak.js +0 -17
- package/src/node/markdown/marker.js +0 -21
- package/src/node/markdown/reference.js +0 -21
- package/src/node/markdown/tableSeparator.js +0 -7
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return BulletMarkdownNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../node/markdown"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _defineProperties(target, props) {
|
|
24
|
-
for(var i = 0; i < props.length; i++){
|
|
25
|
-
var descriptor = props[i];
|
|
26
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
27
|
-
descriptor.configurable = true;
|
|
28
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
29
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
|
-
return Constructor;
|
|
36
|
-
}
|
|
37
|
-
function _get_prototype_of(o) {
|
|
38
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
-
};
|
|
41
|
-
return _get_prototype_of(o);
|
|
42
|
-
}
|
|
43
|
-
function _inherits(subClass, superClass) {
|
|
44
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
-
}
|
|
47
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
-
constructor: {
|
|
49
|
-
value: subClass,
|
|
50
|
-
writable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
-
}
|
|
56
|
-
function _interop_require_default(obj) {
|
|
57
|
-
return obj && obj.__esModule ? obj : {
|
|
58
|
-
default: obj
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
-
if (Reflect.construct.sham) return false;
|
|
81
|
-
if (typeof Proxy === "function") return true;
|
|
82
|
-
try {
|
|
83
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
-
return true;
|
|
85
|
-
} catch (e) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _create_super(Derived) {
|
|
90
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
-
return function _createSuperInternal() {
|
|
92
|
-
var Super = _get_prototype_of(Derived), result;
|
|
93
|
-
if (hasNativeReflectConstruct) {
|
|
94
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
-
} else {
|
|
97
|
-
result = Super.apply(this, arguments);
|
|
98
|
-
}
|
|
99
|
-
return _possible_constructor_return(this, result);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
var BulletMarkdownNode = /*#__PURE__*/ function(MarkdownNode) {
|
|
103
|
-
_inherits(BulletMarkdownNode, MarkdownNode);
|
|
104
|
-
var _super = _create_super(BulletMarkdownNode);
|
|
105
|
-
function BulletMarkdownNode() {
|
|
106
|
-
_class_call_check(this, BulletMarkdownNode);
|
|
107
|
-
return _super.apply(this, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(BulletMarkdownNode, null, [
|
|
110
|
-
{
|
|
111
|
-
key: "fromRuleNameChildNodesAndOpacity",
|
|
112
|
-
value: function fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) {
|
|
113
|
-
return _markdown.default.fromRuleNameChildNodesAndOpacity(BulletMarkdownNode, ruleName, childNodes, opacity);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
]);
|
|
117
|
-
return BulletMarkdownNode;
|
|
118
|
-
}(_markdown.default);
|
|
119
|
-
|
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL21hcmtkb3duL2J1bGxldC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE1hcmtkb3duTm9kZSBmcm9tIFwiLi4vLi4vbm9kZS9tYXJrZG93blwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBCdWxsZXRNYXJrZG93bk5vZGUgZXh0ZW5kcyBNYXJrZG93bk5vZGUge1xuICBzdGF0aWMgZnJvbVJ1bGVOYW1lQ2hpbGROb2Rlc0FuZE9wYWNpdHkocnVsZU5hbWUsIGNoaWxkTm9kZXMsIG9wYWNpdHkpIHsgcmV0dXJuIE1hcmtkb3duTm9kZS5mcm9tUnVsZU5hbWVDaGlsZE5vZGVzQW5kT3BhY2l0eShCdWxsZXRNYXJrZG93bk5vZGUsIHJ1bGVOYW1lLCBjaGlsZE5vZGVzLCBvcGFjaXR5KTsgfVxufVxuIl0sIm5hbWVzIjpbIkJ1bGxldE1hcmtkb3duTm9kZSIsImZyb21SdWxlTmFtZUNoaWxkTm9kZXNBbmRPcGFjaXR5IiwicnVsZU5hbWUiLCJjaGlsZE5vZGVzIiwib3BhY2l0eSIsIk1hcmtkb3duTm9kZSJdLCJyYW5nZU1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O2VBSXFCQTs7OytEQUZJOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRVYsSUFBQSxBQUFNQSxtQ0FBRCxBQUFMO2NBQU1BOytCQUFBQTthQUFBQTtnQ0FBQUE7OztrQkFBQUE7O1lBQ1pDLEtBQUFBO21CQUFQLFNBQU9BLGlDQUFpQ0MsUUFBUSxFQUFFQyxVQUFVLEVBQUVDLE9BQU87Z0JBQUksT0FBT0MsaUJBQVksQ0FBQ0osZ0NBQWdDLENBRDFHRCxvQkFDK0hFLFVBQVVDLFlBQVlDO1lBQVU7OztXQUQvSko7RUFBMkJLLGlCQUFZIn0=
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return IgnoreMarkdownNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../node/markdown"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _defineProperties(target, props) {
|
|
24
|
-
for(var i = 0; i < props.length; i++){
|
|
25
|
-
var descriptor = props[i];
|
|
26
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
27
|
-
descriptor.configurable = true;
|
|
28
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
29
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
|
-
return Constructor;
|
|
36
|
-
}
|
|
37
|
-
function _get_prototype_of(o) {
|
|
38
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
-
};
|
|
41
|
-
return _get_prototype_of(o);
|
|
42
|
-
}
|
|
43
|
-
function _inherits(subClass, superClass) {
|
|
44
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
-
}
|
|
47
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
-
constructor: {
|
|
49
|
-
value: subClass,
|
|
50
|
-
writable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
-
}
|
|
56
|
-
function _interop_require_default(obj) {
|
|
57
|
-
return obj && obj.__esModule ? obj : {
|
|
58
|
-
default: obj
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
-
if (Reflect.construct.sham) return false;
|
|
81
|
-
if (typeof Proxy === "function") return true;
|
|
82
|
-
try {
|
|
83
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
-
return true;
|
|
85
|
-
} catch (e) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _create_super(Derived) {
|
|
90
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
-
return function _createSuperInternal() {
|
|
92
|
-
var Super = _get_prototype_of(Derived), result;
|
|
93
|
-
if (hasNativeReflectConstruct) {
|
|
94
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
-
} else {
|
|
97
|
-
result = Super.apply(this, arguments);
|
|
98
|
-
}
|
|
99
|
-
return _possible_constructor_return(this, result);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
var IgnoreMarkdownNode = /*#__PURE__*/ function(MarkdownNode) {
|
|
103
|
-
_inherits(IgnoreMarkdownNode, MarkdownNode);
|
|
104
|
-
var _super = _create_super(IgnoreMarkdownNode);
|
|
105
|
-
function IgnoreMarkdownNode() {
|
|
106
|
-
_class_call_check(this, IgnoreMarkdownNode);
|
|
107
|
-
return _super.apply(this, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(IgnoreMarkdownNode, null, [
|
|
110
|
-
{
|
|
111
|
-
key: "fromRuleNameChildNodesAndOpacity",
|
|
112
|
-
value: function fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) {
|
|
113
|
-
return _markdown.default.fromRuleNameChildNodesAndOpacity(IgnoreMarkdownNode, ruleName, childNodes, opacity);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
]);
|
|
117
|
-
return IgnoreMarkdownNode;
|
|
118
|
-
}(_markdown.default);
|
|
119
|
-
|
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL21hcmtkb3duL2lnbm9yZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE1hcmtkb3duTm9kZSBmcm9tIFwiLi4vLi4vbm9kZS9tYXJrZG93blwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBJZ25vcmVNYXJrZG93bk5vZGUgZXh0ZW5kcyBNYXJrZG93bk5vZGUge1xuICBzdGF0aWMgZnJvbVJ1bGVOYW1lQ2hpbGROb2Rlc0FuZE9wYWNpdHkocnVsZU5hbWUsIGNoaWxkTm9kZXMsIG9wYWNpdHkpIHsgcmV0dXJuIE1hcmtkb3duTm9kZS5mcm9tUnVsZU5hbWVDaGlsZE5vZGVzQW5kT3BhY2l0eShJZ25vcmVNYXJrZG93bk5vZGUsIHJ1bGVOYW1lLCBjaGlsZE5vZGVzLCBvcGFjaXR5KTsgfVxufVxuIl0sIm5hbWVzIjpbIklnbm9yZU1hcmtkb3duTm9kZSIsImZyb21SdWxlTmFtZUNoaWxkTm9kZXNBbmRPcGFjaXR5IiwicnVsZU5hbWUiLCJjaGlsZE5vZGVzIiwib3BhY2l0eSIsIk1hcmtkb3duTm9kZSJdLCJyYW5nZU1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O2VBSXFCQTs7OytEQUZJOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRVYsSUFBQSxBQUFNQSxtQ0FBRCxBQUFMO2NBQU1BOytCQUFBQTthQUFBQTtnQ0FBQUE7OztrQkFBQUE7O1lBQ1pDLEtBQUFBO21CQUFQLFNBQU9BLGlDQUFpQ0MsUUFBUSxFQUFFQyxVQUFVLEVBQUVDLE9BQU87Z0JBQUksT0FBT0MsaUJBQVksQ0FBQ0osZ0NBQWdDLENBRDFHRCxvQkFDK0hFLFVBQVVDLFlBQVlDO1lBQVU7OztXQUQvSko7RUFBMkJLLGlCQUFZIn0=
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return LineMarkdownNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _necessary = require("necessary");
|
|
12
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../node/markdown"));
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _class_call_check(instance, Constructor) {
|
|
20
|
-
if (!(instance instanceof Constructor)) {
|
|
21
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function _defineProperties(target, props) {
|
|
25
|
-
for(var i = 0; i < props.length; i++){
|
|
26
|
-
var descriptor = props[i];
|
|
27
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
28
|
-
descriptor.configurable = true;
|
|
29
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
30
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
34
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
|
-
return Constructor;
|
|
37
|
-
}
|
|
38
|
-
function _get_prototype_of(o) {
|
|
39
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
40
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
41
|
-
};
|
|
42
|
-
return _get_prototype_of(o);
|
|
43
|
-
}
|
|
44
|
-
function _inherits(subClass, superClass) {
|
|
45
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
46
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
47
|
-
}
|
|
48
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
49
|
-
constructor: {
|
|
50
|
-
value: subClass,
|
|
51
|
-
writable: true,
|
|
52
|
-
configurable: true
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
56
|
-
}
|
|
57
|
-
function _interop_require_default(obj) {
|
|
58
|
-
return obj && obj.__esModule ? obj : {
|
|
59
|
-
default: obj
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
66
|
-
return _assert_this_initialized(self);
|
|
67
|
-
}
|
|
68
|
-
function _set_prototype_of(o, p) {
|
|
69
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
-
o.__proto__ = p;
|
|
71
|
-
return o;
|
|
72
|
-
};
|
|
73
|
-
return _set_prototype_of(o, p);
|
|
74
|
-
}
|
|
75
|
-
function _type_of(obj) {
|
|
76
|
-
"@swc/helpers - typeof";
|
|
77
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
-
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
81
|
-
if (Reflect.construct.sham) return false;
|
|
82
|
-
if (typeof Proxy === "function") return true;
|
|
83
|
-
try {
|
|
84
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
85
|
-
return true;
|
|
86
|
-
} catch (e) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function _create_super(Derived) {
|
|
91
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
92
|
-
return function _createSuperInternal() {
|
|
93
|
-
var Super = _get_prototype_of(Derived), result;
|
|
94
|
-
if (hasNativeReflectConstruct) {
|
|
95
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
96
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
97
|
-
} else {
|
|
98
|
-
result = Super.apply(this, arguments);
|
|
99
|
-
}
|
|
100
|
-
return _possible_constructor_return(this, result);
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
var first = _necessary.arrayUtilities.first;
|
|
104
|
-
var LineMarkdownNode = /*#__PURE__*/ function(MarkdownNode) {
|
|
105
|
-
_inherits(LineMarkdownNode, MarkdownNode);
|
|
106
|
-
var _super = _create_super(LineMarkdownNode);
|
|
107
|
-
function LineMarkdownNode() {
|
|
108
|
-
_class_call_check(this, LineMarkdownNode);
|
|
109
|
-
return _super.apply(this, arguments);
|
|
110
|
-
}
|
|
111
|
-
_create_class(LineMarkdownNode, [
|
|
112
|
-
{
|
|
113
|
-
key: "childNodesAsHTML",
|
|
114
|
-
value: function childNodesAsHTML(indent, context) {
|
|
115
|
-
var leftTrimmed = true, childNodes = this.getChildNodes(), firstChildNode = first(childNodes), markedTextChildNode = firstChildNode, childNodesHTML = markedTextChildNode.childNodesAsHTML(indent, context, leftTrimmed);
|
|
116
|
-
return childNodesHTML;
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
key: "createChildNodeDOMElements",
|
|
121
|
-
value: function createChildNodeDOMElements(context) {
|
|
122
|
-
var leftTrimmed = true, domElement = this.getDOMElement(), childNodes = this.getChildNodes(), firstChildNode = first(childNodes), markedTextChildNode = firstChildNode; ///
|
|
123
|
-
markedTextChildNode.createChildNodeDOMElements(domElement, context, leftTrimmed);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
], [
|
|
127
|
-
{
|
|
128
|
-
key: "fromRuleNameChildNodesAndOpacity",
|
|
129
|
-
value: function fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) {
|
|
130
|
-
return _markdown.default.fromRuleNameChildNodesAndOpacity(LineMarkdownNode, ruleName, childNodes, opacity);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
]);
|
|
134
|
-
return LineMarkdownNode;
|
|
135
|
-
}(_markdown.default);
|
|
136
|
-
|
|
137
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL21hc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xPQUFPO2dCQUFJLE9BQU9DLGlCQUFZLENBQUNILGdDQUFnQyxDQXJCMUdmLGtCQXFCNkhnQixVQUFVVCxZQUFZVTtZQUFVOzs7V0FyQjdKakI7RUFBeUJrQixpQkFBWSJ9
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return LineBreakMarkdownNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../node/markdown"));
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _class_call_check(instance, Constructor) {
|
|
19
|
-
if (!(instance instanceof Constructor)) {
|
|
20
|
-
throw new TypeError("Cannot call a class as a function");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function _defineProperties(target, props) {
|
|
24
|
-
for(var i = 0; i < props.length; i++){
|
|
25
|
-
var descriptor = props[i];
|
|
26
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
27
|
-
descriptor.configurable = true;
|
|
28
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
29
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
33
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
34
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
35
|
-
return Constructor;
|
|
36
|
-
}
|
|
37
|
-
function _get_prototype_of(o) {
|
|
38
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
-
};
|
|
41
|
-
return _get_prototype_of(o);
|
|
42
|
-
}
|
|
43
|
-
function _inherits(subClass, superClass) {
|
|
44
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
-
}
|
|
47
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
-
constructor: {
|
|
49
|
-
value: subClass,
|
|
50
|
-
writable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
-
}
|
|
56
|
-
function _interop_require_default(obj) {
|
|
57
|
-
return obj && obj.__esModule ? obj : {
|
|
58
|
-
default: obj
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function _possible_constructor_return(self, call) {
|
|
62
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
-
return call;
|
|
64
|
-
}
|
|
65
|
-
return _assert_this_initialized(self);
|
|
66
|
-
}
|
|
67
|
-
function _set_prototype_of(o, p) {
|
|
68
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
-
o.__proto__ = p;
|
|
70
|
-
return o;
|
|
71
|
-
};
|
|
72
|
-
return _set_prototype_of(o, p);
|
|
73
|
-
}
|
|
74
|
-
function _type_of(obj) {
|
|
75
|
-
"@swc/helpers - typeof";
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
78
|
-
function _is_native_reflect_construct() {
|
|
79
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
-
if (Reflect.construct.sham) return false;
|
|
81
|
-
if (typeof Proxy === "function") return true;
|
|
82
|
-
try {
|
|
83
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
-
return true;
|
|
85
|
-
} catch (e) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _create_super(Derived) {
|
|
90
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
-
return function _createSuperInternal() {
|
|
92
|
-
var Super = _get_prototype_of(Derived), result;
|
|
93
|
-
if (hasNativeReflectConstruct) {
|
|
94
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
-
} else {
|
|
97
|
-
result = Super.apply(this, arguments);
|
|
98
|
-
}
|
|
99
|
-
return _possible_constructor_return(this, result);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
var LineBreakMarkdownNode = /*#__PURE__*/ function(MarkdownNode) {
|
|
103
|
-
_inherits(LineBreakMarkdownNode, MarkdownNode);
|
|
104
|
-
var _super = _create_super(LineBreakMarkdownNode);
|
|
105
|
-
function LineBreakMarkdownNode() {
|
|
106
|
-
_class_call_check(this, LineBreakMarkdownNode);
|
|
107
|
-
return _super.apply(this, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(LineBreakMarkdownNode, [
|
|
110
|
-
{
|
|
111
|
-
key: "childNodesAsHTML",
|
|
112
|
-
value: function childNodesAsHTML(indent, context) {
|
|
113
|
-
var childNodesHTML = null;
|
|
114
|
-
return childNodesHTML;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "createChildNodeDOMElements",
|
|
119
|
-
value: function createChildNodeDOMElements(context) {
|
|
120
|
-
///
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
], [
|
|
124
|
-
{
|
|
125
|
-
key: "fromRuleNameChildNodesAndOpacity",
|
|
126
|
-
value: function fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) {
|
|
127
|
-
return _markdown.default.fromRuleNameChildNodesAndOpacity(LineBreakMarkdownNode, ruleName, childNodes, opacity);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]);
|
|
131
|
-
return LineBreakMarkdownNode;
|
|
132
|
-
}(_markdown.default);
|
|
133
|
-
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL21hcmtkb3duL2xpbmVCcmVhay5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE1hcmtkb3duTm9kZSBmcm9tIFwiLi4vLi4vbm9kZS9tYXJrZG93blwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBMaW5lQnJlYWtNYXJrZG93bk5vZGUgZXh0ZW5kcyBNYXJrZG93bk5vZGUge1xuICBjaGlsZE5vZGVzQXNIVE1MKGluZGVudCwgY29udGV4dCkge1xuICAgIGNvbnN0IGNoaWxkTm9kZXNIVE1MID0gbnVsbDtcblxuICAgIHJldHVybiBjaGlsZE5vZGVzSFRNTDtcbiAgfVxuXG4gIGNyZWF0ZUNoaWxkTm9kZURPTUVsZW1lbnRzKGNvbnRleHQpIHtcbiAgICAvLy9cbiAgfVxuXG4gIHN0YXRpYyBmcm9tUnVsZU5hbWVDaGlsZE5vZGVzQW5kT3BhY2l0eShydWxlTmFtZSwgY2hpbGROb2Rlcywgb3BhY2l0eSkgeyByZXR1cm4gTWFya2Rvd25Ob2RlLmZyb21SdWxlTmFtZUNoaWxkTm9kZXNBbmRPcGFjaXR5KExpbmVCcmVha01hcmtkb3duTm9kZSwgcnVsZU5hbWUsIGNoaWxkTm9kZXMsIG9wYWNpdHkpOyB9XG59XG4iXSwibmFtZXMiOlsiTGluZUJyZWFrTWFya2Rvd25Ob2RlIiwiY2hpbGROb2Rlc0FzSFRNTCIsImluZGVudCIsImNvbnRleHQiLCJjaGlsZE5vZGVzSFRNTCIsImNyZWF0ZUNoaWxkTm9kZURPTUVsZW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BWSJ9
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return MarkerMarkdownNode;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _necessary = require("necessary");
|
|
12
|
-
var _markdown = /*#__PURE__*/ _interop_require_default(require("../../node/markdown"));
|
|
13
|
-
function _assert_this_initialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _class_call_check(instance, Constructor) {
|
|
20
|
-
if (!(instance instanceof Constructor)) {
|
|
21
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function _defineProperties(target, props) {
|
|
25
|
-
for(var i = 0; i < props.length; i++){
|
|
26
|
-
var descriptor = props[i];
|
|
27
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
28
|
-
descriptor.configurable = true;
|
|
29
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
30
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
34
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
|
-
return Constructor;
|
|
37
|
-
}
|
|
38
|
-
function _get_prototype_of(o) {
|
|
39
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
40
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
41
|
-
};
|
|
42
|
-
return _get_prototype_of(o);
|
|
43
|
-
}
|
|
44
|
-
function _inherits(subClass, superClass) {
|
|
45
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
46
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
47
|
-
}
|
|
48
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
49
|
-
constructor: {
|
|
50
|
-
value: subClass,
|
|
51
|
-
writable: true,
|
|
52
|
-
configurable: true
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
56
|
-
}
|
|
57
|
-
function _interop_require_default(obj) {
|
|
58
|
-
return obj && obj.__esModule ? obj : {
|
|
59
|
-
default: obj
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
66
|
-
return _assert_this_initialized(self);
|
|
67
|
-
}
|
|
68
|
-
function _set_prototype_of(o, p) {
|
|
69
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
-
o.__proto__ = p;
|
|
71
|
-
return o;
|
|
72
|
-
};
|
|
73
|
-
return _set_prototype_of(o, p);
|
|
74
|
-
}
|
|
75
|
-
function _type_of(obj) {
|
|
76
|
-
"@swc/helpers - typeof";
|
|
77
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
-
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
81
|
-
if (Reflect.construct.sham) return false;
|
|
82
|
-
if (typeof Proxy === "function") return true;
|
|
83
|
-
try {
|
|
84
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
85
|
-
return true;
|
|
86
|
-
} catch (e) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function _create_super(Derived) {
|
|
91
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
92
|
-
return function _createSuperInternal() {
|
|
93
|
-
var Super = _get_prototype_of(Derived), result;
|
|
94
|
-
if (hasNativeReflectConstruct) {
|
|
95
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
96
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
97
|
-
} else {
|
|
98
|
-
result = Super.apply(this, arguments);
|
|
99
|
-
}
|
|
100
|
-
return _possible_constructor_return(this, result);
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
var first = _necessary.arrayUtilities.first;
|
|
104
|
-
var MarkerMarkdownNode = /*#__PURE__*/ function(MarkdownNode) {
|
|
105
|
-
_inherits(MarkerMarkdownNode, MarkdownNode);
|
|
106
|
-
var _super = _create_super(MarkerMarkdownNode);
|
|
107
|
-
function MarkerMarkdownNode() {
|
|
108
|
-
_class_call_check(this, MarkerMarkdownNode);
|
|
109
|
-
return _super.apply(this, arguments);
|
|
110
|
-
}
|
|
111
|
-
_create_class(MarkerMarkdownNode, [
|
|
112
|
-
{
|
|
113
|
-
key: "value",
|
|
114
|
-
value: function value(context) {
|
|
115
|
-
var childNodes = this.getChildNodes(), firstChildNode = first(childNodes), numberTerminalNode = firstChildNode, numberTerminalNodeContent = numberTerminalNode.getContent(), value = numberTerminalNodeContent; ///
|
|
116
|
-
return value;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
], [
|
|
120
|
-
{
|
|
121
|
-
key: "fromRuleNameChildNodesAndOpacity",
|
|
122
|
-
value: function fromRuleNameChildNodesAndOpacity(ruleName, childNodes, opacity) {
|
|
123
|
-
return _markdown.default.fromRuleNameChildNodesAndOpacity(MarkerMarkdownNode, ruleName, childNodes, opacity);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
]);
|
|
127
|
-
return MarkerMarkdownNode;
|
|
128
|
-
}(_markdown.default);
|
|
129
|
-
|
|
130
|
-
//# sourceM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