@readme/markdown 6.33.1 → 6.34.0-next.1
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/CHANGELOG.md +18 -0
- package/dist/main.js +242 -62
- package/dist/main.node.js +116 -28
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
===
|
|
3
3
|
|
|
4
|
+
## Version 6.34.0-next.1
|
|
5
|
+
|
|
6
|
+
### ✨ New & Improved
|
|
7
|
+
|
|
8
|
+
* less lossy md() ([#377](https://github.com/readmeio/markdown/issues/377)) ([4189554](https://github.com/readmeio/markdown/commit/4189554e6f332ca396c6095ad3f028f567c7c2f3))
|
|
9
|
+
|
|
10
|
+
## Version 6.33.2-next.2
|
|
11
|
+
|
|
12
|
+
### 🛠 Fixes & Updates
|
|
13
|
+
|
|
14
|
+
* include icon in callout to string ([#373](https://github.com/readmeio/markdown/issues/373)) ([208ddb5](https://github.com/readmeio/markdown/commit/208ddb5ece9f6069b49adf5717cbc50988895705))
|
|
15
|
+
|
|
16
|
+
## Version 6.33.2-next.1
|
|
17
|
+
|
|
18
|
+
### 🛠 Fixes & Updates
|
|
19
|
+
|
|
20
|
+
* **deps-dev:** upgrading eslint to v8 ([#363](https://github.com/readmeio/markdown/issues/363)) ([431dcae](https://github.com/readmeio/markdown/commit/431dcaefb99c4885324c5be429b876fe0946a0ad))
|
|
21
|
+
|
|
4
22
|
## Version 6.33.1
|
|
5
23
|
|
|
6
24
|
### 🛠 Fixes & Updates
|
package/dist/main.js
CHANGED
|
@@ -25,6 +25,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
module.exports = _arrayLikeToArray;
|
|
28
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
28
29
|
|
|
29
30
|
/***/ }),
|
|
30
31
|
|
|
@@ -36,6 +37,7 @@ function _arrayWithHoles(arr) {
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
module.exports = _arrayWithHoles;
|
|
40
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
39
41
|
|
|
40
42
|
/***/ }),
|
|
41
43
|
|
|
@@ -49,6 +51,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
module.exports = _arrayWithoutHoles;
|
|
54
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
52
55
|
|
|
53
56
|
/***/ }),
|
|
54
57
|
|
|
@@ -64,6 +67,7 @@ function _assertThisInitialized(self) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
module.exports = _assertThisInitialized;
|
|
70
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
67
71
|
|
|
68
72
|
/***/ }),
|
|
69
73
|
|
|
@@ -77,6 +81,7 @@ function _classCallCheck(instance, Constructor) {
|
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
module.exports = _classCallCheck;
|
|
84
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
80
85
|
|
|
81
86
|
/***/ }),
|
|
82
87
|
|
|
@@ -100,6 +105,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
module.exports = _createClass;
|
|
108
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
103
109
|
|
|
104
110
|
/***/ }),
|
|
105
111
|
|
|
@@ -122,6 +128,7 @@ function _defineProperty(obj, key, value) {
|
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
module.exports = _defineProperty;
|
|
131
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
125
132
|
|
|
126
133
|
/***/ }),
|
|
127
134
|
|
|
@@ -143,10 +150,12 @@ function _extends() {
|
|
|
143
150
|
return target;
|
|
144
151
|
};
|
|
145
152
|
|
|
153
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
146
154
|
return _extends.apply(this, arguments);
|
|
147
155
|
}
|
|
148
156
|
|
|
149
157
|
module.exports = _extends;
|
|
158
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
150
159
|
|
|
151
160
|
/***/ }),
|
|
152
161
|
|
|
@@ -155,9 +164,10 @@ module.exports = _extends;
|
|
|
155
164
|
|
|
156
165
|
var superPropBase = __webpack_require__(8331);
|
|
157
166
|
|
|
158
|
-
function _get(
|
|
167
|
+
function _get() {
|
|
159
168
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
160
169
|
module.exports = _get = Reflect.get;
|
|
170
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
161
171
|
} else {
|
|
162
172
|
module.exports = _get = function _get(target, property, receiver) {
|
|
163
173
|
var base = superPropBase(target, property);
|
|
@@ -165,17 +175,20 @@ function _get(target, property, receiver) {
|
|
|
165
175
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
166
176
|
|
|
167
177
|
if (desc.get) {
|
|
168
|
-
return desc.get.call(receiver);
|
|
178
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
169
179
|
}
|
|
170
180
|
|
|
171
181
|
return desc.value;
|
|
172
182
|
};
|
|
183
|
+
|
|
184
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
173
185
|
}
|
|
174
186
|
|
|
175
|
-
return _get(
|
|
187
|
+
return _get.apply(this, arguments);
|
|
176
188
|
}
|
|
177
189
|
|
|
178
190
|
module.exports = _get;
|
|
191
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
179
192
|
|
|
180
193
|
/***/ }),
|
|
181
194
|
|
|
@@ -186,10 +199,12 @@ function _getPrototypeOf(o) {
|
|
|
186
199
|
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
187
200
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
188
201
|
};
|
|
202
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
189
203
|
return _getPrototypeOf(o);
|
|
190
204
|
}
|
|
191
205
|
|
|
192
206
|
module.exports = _getPrototypeOf;
|
|
207
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
193
208
|
|
|
194
209
|
/***/ }),
|
|
195
210
|
|
|
@@ -214,6 +229,7 @@ function _inherits(subClass, superClass) {
|
|
|
214
229
|
}
|
|
215
230
|
|
|
216
231
|
module.exports = _inherits;
|
|
232
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
217
233
|
|
|
218
234
|
/***/ }),
|
|
219
235
|
|
|
@@ -221,10 +237,11 @@ module.exports = _inherits;
|
|
|
221
237
|
/***/ ((module) => {
|
|
222
238
|
|
|
223
239
|
function _iterableToArray(iter) {
|
|
224
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
240
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
225
241
|
}
|
|
226
242
|
|
|
227
243
|
module.exports = _iterableToArray;
|
|
244
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
228
245
|
|
|
229
246
|
/***/ }),
|
|
230
247
|
|
|
@@ -232,14 +249,17 @@ module.exports = _iterableToArray;
|
|
|
232
249
|
/***/ ((module) => {
|
|
233
250
|
|
|
234
251
|
function _iterableToArrayLimit(arr, i) {
|
|
235
|
-
|
|
252
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
253
|
+
|
|
254
|
+
if (_i == null) return;
|
|
236
255
|
var _arr = [];
|
|
237
256
|
var _n = true;
|
|
238
257
|
var _d = false;
|
|
239
|
-
|
|
258
|
+
|
|
259
|
+
var _s, _e;
|
|
240
260
|
|
|
241
261
|
try {
|
|
242
|
-
for (
|
|
262
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
243
263
|
_arr.push(_s.value);
|
|
244
264
|
|
|
245
265
|
if (i && _arr.length === i) break;
|
|
@@ -259,6 +279,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
259
279
|
}
|
|
260
280
|
|
|
261
281
|
module.exports = _iterableToArrayLimit;
|
|
282
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
262
283
|
|
|
263
284
|
/***/ }),
|
|
264
285
|
|
|
@@ -270,6 +291,7 @@ function _nonIterableRest() {
|
|
|
270
291
|
}
|
|
271
292
|
|
|
272
293
|
module.exports = _nonIterableRest;
|
|
294
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
273
295
|
|
|
274
296
|
/***/ }),
|
|
275
297
|
|
|
@@ -281,6 +303,7 @@ function _nonIterableSpread() {
|
|
|
281
303
|
}
|
|
282
304
|
|
|
283
305
|
module.exports = _nonIterableSpread;
|
|
306
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
284
307
|
|
|
285
308
|
/***/ }),
|
|
286
309
|
|
|
@@ -309,6 +332,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
309
332
|
}
|
|
310
333
|
|
|
311
334
|
module.exports = _objectWithoutProperties;
|
|
335
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
312
336
|
|
|
313
337
|
/***/ }),
|
|
314
338
|
|
|
@@ -331,25 +355,29 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
331
355
|
}
|
|
332
356
|
|
|
333
357
|
module.exports = _objectWithoutPropertiesLoose;
|
|
358
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
334
359
|
|
|
335
360
|
/***/ }),
|
|
336
361
|
|
|
337
362
|
/***/ 8585:
|
|
338
363
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
339
364
|
|
|
340
|
-
var _typeof = __webpack_require__(8);
|
|
365
|
+
var _typeof = __webpack_require__(8)["default"];
|
|
341
366
|
|
|
342
367
|
var assertThisInitialized = __webpack_require__(1506);
|
|
343
368
|
|
|
344
369
|
function _possibleConstructorReturn(self, call) {
|
|
345
370
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
346
371
|
return call;
|
|
372
|
+
} else if (call !== void 0) {
|
|
373
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
347
374
|
}
|
|
348
375
|
|
|
349
376
|
return assertThisInitialized(self);
|
|
350
377
|
}
|
|
351
378
|
|
|
352
379
|
module.exports = _possibleConstructorReturn;
|
|
380
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
353
381
|
|
|
354
382
|
/***/ }),
|
|
355
383
|
|
|
@@ -362,10 +390,12 @@ function _setPrototypeOf(o, p) {
|
|
|
362
390
|
return o;
|
|
363
391
|
};
|
|
364
392
|
|
|
393
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
365
394
|
return _setPrototypeOf(o, p);
|
|
366
395
|
}
|
|
367
396
|
|
|
368
397
|
module.exports = _setPrototypeOf;
|
|
398
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
369
399
|
|
|
370
400
|
/***/ }),
|
|
371
401
|
|
|
@@ -385,6 +415,7 @@ function _slicedToArray(arr, i) {
|
|
|
385
415
|
}
|
|
386
416
|
|
|
387
417
|
module.exports = _slicedToArray;
|
|
418
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
388
419
|
|
|
389
420
|
/***/ }),
|
|
390
421
|
|
|
@@ -403,6 +434,7 @@ function _superPropBase(object, property) {
|
|
|
403
434
|
}
|
|
404
435
|
|
|
405
436
|
module.exports = _superPropBase;
|
|
437
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
406
438
|
|
|
407
439
|
/***/ }),
|
|
408
440
|
|
|
@@ -422,6 +454,7 @@ function _toArray(arr) {
|
|
|
422
454
|
}
|
|
423
455
|
|
|
424
456
|
module.exports = _toArray;
|
|
457
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
425
458
|
|
|
426
459
|
/***/ }),
|
|
427
460
|
|
|
@@ -441,6 +474,7 @@ function _toConsumableArray(arr) {
|
|
|
441
474
|
}
|
|
442
475
|
|
|
443
476
|
module.exports = _toConsumableArray;
|
|
477
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
444
478
|
|
|
445
479
|
/***/ }),
|
|
446
480
|
|
|
@@ -454,16 +488,21 @@ function _typeof(obj) {
|
|
|
454
488
|
module.exports = _typeof = function _typeof(obj) {
|
|
455
489
|
return typeof obj;
|
|
456
490
|
};
|
|
491
|
+
|
|
492
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
457
493
|
} else {
|
|
458
494
|
module.exports = _typeof = function _typeof(obj) {
|
|
459
495
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
460
496
|
};
|
|
497
|
+
|
|
498
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
461
499
|
}
|
|
462
500
|
|
|
463
501
|
return _typeof(obj);
|
|
464
502
|
}
|
|
465
503
|
|
|
466
504
|
module.exports = _typeof;
|
|
505
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
467
506
|
|
|
468
507
|
/***/ }),
|
|
469
508
|
|
|
@@ -482,6 +521,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
482
521
|
}
|
|
483
522
|
|
|
484
523
|
module.exports = _unsupportedIterableToArray;
|
|
524
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
485
525
|
|
|
486
526
|
/***/ }),
|
|
487
527
|
|
|
@@ -27737,13 +27777,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27737
27777
|
/* harmony export */ "options": () => (/* binding */ options),
|
|
27738
27778
|
/* harmony export */ "parseOptions": () => (/* binding */ parseOptions)
|
|
27739
27779
|
/* harmony export */ });
|
|
27740
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
27741
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
27780
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4942);
|
|
27742
27781
|
|
|
27743
27782
|
|
|
27744
27783
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27745
27784
|
|
|
27746
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) {
|
|
27785
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27747
27786
|
|
|
27748
27787
|
var options = {
|
|
27749
27788
|
compatibilityMode: false,
|
|
@@ -27832,7 +27871,7 @@ module.exports = function CalloutCompiler() {
|
|
|
27832
27871
|
|
|
27833
27872
|
visitors['rdme-callout'] = function compile(node) {
|
|
27834
27873
|
var block = this.block(node).replace(/\n/g, '\n> ');
|
|
27835
|
-
block = "> ".concat(block);
|
|
27874
|
+
block = "> ".concat(node.data.hProperties.icon, " ").concat(block);
|
|
27836
27875
|
return block;
|
|
27837
27876
|
};
|
|
27838
27877
|
};
|
|
@@ -27871,16 +27910,22 @@ module.exports = function DivCompiler() {
|
|
|
27871
27910
|
/***/ }),
|
|
27872
27911
|
|
|
27873
27912
|
/***/ 4338:
|
|
27874
|
-
/***/ ((module) => {
|
|
27913
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
27914
|
+
|
|
27915
|
+
var _defineProperty = __webpack_require__(9713);
|
|
27916
|
+
|
|
27917
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27918
|
+
|
|
27919
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27875
27920
|
|
|
27876
27921
|
function EmbedCompiler(node) {
|
|
27877
|
-
var
|
|
27878
|
-
|
|
27879
|
-
|
|
27880
|
-
|
|
27881
|
-
|
|
27882
|
-
|
|
27883
|
-
|
|
27922
|
+
var data = node.data.hProperties;
|
|
27923
|
+
var _data$provider = data.provider,
|
|
27924
|
+
provider = _data$provider === void 0 ? 'embed' : _data$provider;
|
|
27925
|
+
provider = provider.replace(/^@/, '');
|
|
27926
|
+
return "\n[block:embed]\n".concat(JSON.stringify(_objectSpread(_objectSpread({}, data), {}, {
|
|
27927
|
+
provider: provider
|
|
27928
|
+
}), null, 2), "\n[/block]\n");
|
|
27884
27929
|
}
|
|
27885
27930
|
|
|
27886
27931
|
module.exports = function () {
|
|
@@ -27896,23 +27941,49 @@ module.exports = function () {
|
|
|
27896
27941
|
|
|
27897
27942
|
var _slicedToArray = __webpack_require__(3038);
|
|
27898
27943
|
|
|
27899
|
-
var
|
|
27944
|
+
var _require = __webpack_require__(7589),
|
|
27945
|
+
imgSizeByWidth = _require.imgSizeByWidth;
|
|
27900
27946
|
|
|
27901
27947
|
module.exports = function FigureCompiler() {
|
|
27902
27948
|
var Compiler = this.Compiler;
|
|
27903
27949
|
var visitors = Compiler.prototype.visitors;
|
|
27904
27950
|
|
|
27905
|
-
visitors.figcaption = function figcaptionCompiler(node) {
|
|
27906
|
-
var caption = nodeToString(node);
|
|
27907
|
-
return "<figcaption>".concat(caption, "</figcaption>");
|
|
27908
|
-
};
|
|
27909
|
-
|
|
27910
27951
|
visitors.figure = function figureCompiler(node) {
|
|
27911
27952
|
var _node$children = _slicedToArray(node.children, 2),
|
|
27912
27953
|
image = _node$children[0],
|
|
27913
27954
|
caption = _node$children[1];
|
|
27914
27955
|
|
|
27915
|
-
|
|
27956
|
+
var img = {
|
|
27957
|
+
image: [image.url, image.title],
|
|
27958
|
+
caption: this.block(caption),
|
|
27959
|
+
sizing: imgSizeByWidth[image.data.hProperties.width]
|
|
27960
|
+
};
|
|
27961
|
+
if (image.border) img.border = image.border;
|
|
27962
|
+
var block = {
|
|
27963
|
+
images: [img]
|
|
27964
|
+
};
|
|
27965
|
+
return "[block:image]\n".concat(JSON.stringify(block, null, 2), "\n[/block]");
|
|
27966
|
+
};
|
|
27967
|
+
};
|
|
27968
|
+
|
|
27969
|
+
/***/ }),
|
|
27970
|
+
|
|
27971
|
+
/***/ 3356:
|
|
27972
|
+
/***/ ((module) => {
|
|
27973
|
+
|
|
27974
|
+
module.exports = function ImageCompiler() {
|
|
27975
|
+
var Compiler = this.Compiler;
|
|
27976
|
+
var visitors = Compiler.prototype.visitors;
|
|
27977
|
+
var original = visitors.image;
|
|
27978
|
+
|
|
27979
|
+
visitors.image = function compile(node) {
|
|
27980
|
+
var _node$data, _node$data$hPropertie;
|
|
27981
|
+
|
|
27982
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
27983
|
+
args[_key - 1] = arguments[_key];
|
|
27984
|
+
}
|
|
27985
|
+
|
|
27986
|
+
return ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : (_node$data$hPropertie = _node$data.hProperties) === null || _node$data$hPropertie === void 0 ? void 0 : _node$data$hPropertie.className) === 'emoji' ? node.title : original.call.apply(original, [this, node].concat(args));
|
|
27916
27987
|
};
|
|
27917
27988
|
};
|
|
27918
27989
|
|
|
@@ -27931,7 +28002,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27931
28002
|
/* harmony export */ "rdmeEmbedCompiler": () => (/* reexport default from dynamic */ _embed__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
27932
28003
|
/* harmony export */ "rdmeVarCompiler": () => (/* reexport default from dynamic */ _var__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
27933
28004
|
/* harmony export */ "rdmeCalloutCompiler": () => (/* reexport default from dynamic */ _callout__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
27934
|
-
/* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_7___default.a)
|
|
28005
|
+
/* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
28006
|
+
/* harmony export */ "imageCompiler": () => (/* reexport default from dynamic */ _image__WEBPACK_IMPORTED_MODULE_8___default.a)
|
|
27935
28007
|
/* harmony export */ });
|
|
27936
28008
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
|
|
27937
28009
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_div__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -27949,6 +28021,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27949
28021
|
/* harmony import */ var _callout__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_callout__WEBPACK_IMPORTED_MODULE_6__);
|
|
27950
28022
|
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2151);
|
|
27951
28023
|
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_pin__WEBPACK_IMPORTED_MODULE_7__);
|
|
28024
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3356);
|
|
28025
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_image__WEBPACK_IMPORTED_MODULE_8__);
|
|
28026
|
+
|
|
27952
28027
|
|
|
27953
28028
|
|
|
27954
28029
|
|
|
@@ -28425,10 +28500,21 @@ var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
|
|
|
28425
28500
|
};
|
|
28426
28501
|
};
|
|
28427
28502
|
|
|
28428
|
-
var
|
|
28503
|
+
var imgSizeValues = {
|
|
28429
28504
|
full: '100%',
|
|
28430
28505
|
original: 'auto'
|
|
28431
28506
|
};
|
|
28507
|
+
var imgWidthBySize = new Proxy(imgSizeValues, {
|
|
28508
|
+
get: function get(widths, size) {
|
|
28509
|
+
return size !== null && size !== void 0 && size.match(/^\d+$/) ? "".concat(size, "%") : size in widths ? widths[size] : size;
|
|
28510
|
+
}
|
|
28511
|
+
});
|
|
28512
|
+
var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
|
|
28513
|
+
get: function get(sizes, width) {
|
|
28514
|
+
var match = width === null || width === void 0 ? void 0 : width.match(/^(\d+)%$/);
|
|
28515
|
+
return match ? match[1] : width in sizes ? sizes[width] : width;
|
|
28516
|
+
}
|
|
28517
|
+
});
|
|
28432
28518
|
|
|
28433
28519
|
function tokenize(eat, value) {
|
|
28434
28520
|
var _this = this;
|
|
@@ -28508,7 +28594,6 @@ function tokenize(eat, value) {
|
|
|
28508
28594
|
url = _img$image[0],
|
|
28509
28595
|
title = _img$image[1];
|
|
28510
28596
|
|
|
28511
|
-
var size = img.sizing;
|
|
28512
28597
|
var block = {
|
|
28513
28598
|
type: 'image',
|
|
28514
28599
|
url: url,
|
|
@@ -28517,7 +28602,7 @@ function tokenize(eat, value) {
|
|
|
28517
28602
|
data: {
|
|
28518
28603
|
hProperties: {
|
|
28519
28604
|
className: img.border ? 'border' : '',
|
|
28520
|
-
width:
|
|
28605
|
+
width: imgWidthBySize[img.sizing]
|
|
28521
28606
|
}
|
|
28522
28607
|
}
|
|
28523
28608
|
};
|
|
@@ -28713,6 +28798,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
28713
28798
|
return parser;
|
|
28714
28799
|
};
|
|
28715
28800
|
|
|
28801
|
+
module.exports.imgSizeByWidth = imgSizeByWidth;
|
|
28802
|
+
|
|
28716
28803
|
/***/ }),
|
|
28717
28804
|
|
|
28718
28805
|
/***/ 2697:
|
|
@@ -49588,6 +49675,30 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__4466__;
|
|
|
49588
49675
|
|
|
49589
49676
|
/***/ }),
|
|
49590
49677
|
|
|
49678
|
+
/***/ 4942:
|
|
49679
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
49680
|
+
|
|
49681
|
+
"use strict";
|
|
49682
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
49683
|
+
/* harmony export */ "Z": () => (/* binding */ _defineProperty)
|
|
49684
|
+
/* harmony export */ });
|
|
49685
|
+
function _defineProperty(obj, key, value) {
|
|
49686
|
+
if (key in obj) {
|
|
49687
|
+
Object.defineProperty(obj, key, {
|
|
49688
|
+
value: value,
|
|
49689
|
+
enumerable: true,
|
|
49690
|
+
configurable: true,
|
|
49691
|
+
writable: true
|
|
49692
|
+
});
|
|
49693
|
+
} else {
|
|
49694
|
+
obj[key] = value;
|
|
49695
|
+
}
|
|
49696
|
+
|
|
49697
|
+
return obj;
|
|
49698
|
+
}
|
|
49699
|
+
|
|
49700
|
+
/***/ }),
|
|
49701
|
+
|
|
49591
49702
|
/***/ 2781:
|
|
49592
49703
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
49593
49704
|
|
|
@@ -51410,33 +51521,102 @@ var __webpack_exports__ = {};
|
|
|
51410
51521
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
51411
51522
|
(() => {
|
|
51412
51523
|
"use strict";
|
|
51524
|
+
// ESM COMPAT FLAG
|
|
51413
51525
|
__webpack_require__.r(__webpack_exports__);
|
|
51414
|
-
|
|
51415
|
-
|
|
51416
|
-
|
|
51417
|
-
|
|
51418
|
-
|
|
51419
|
-
|
|
51420
|
-
|
|
51421
|
-
|
|
51422
|
-
|
|
51423
|
-
|
|
51424
|
-
|
|
51425
|
-
|
|
51426
|
-
|
|
51427
|
-
|
|
51428
|
-
|
|
51429
|
-
/*
|
|
51430
|
-
|
|
51431
|
-
|
|
51432
|
-
|
|
51433
|
-
|
|
51526
|
+
|
|
51527
|
+
// EXPORTS
|
|
51528
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
51529
|
+
"Components": () => (/* binding */ Components),
|
|
51530
|
+
"astToPlainText": () => (/* binding */ astToPlainText),
|
|
51531
|
+
"default": () => (/* binding */ index),
|
|
51532
|
+
"hast": () => (/* binding */ hast),
|
|
51533
|
+
"html": () => (/* binding */ html),
|
|
51534
|
+
"md": () => (/* binding */ md),
|
|
51535
|
+
"mdast": () => (/* binding */ mdast),
|
|
51536
|
+
"plain": () => (/* binding */ plain),
|
|
51537
|
+
"processor": () => (/* binding */ processor),
|
|
51538
|
+
"react": () => (/* binding */ react),
|
|
51539
|
+
"reactProcessor": () => (/* binding */ reactProcessor),
|
|
51540
|
+
"reactTOC": () => (/* binding */ reactTOC),
|
|
51541
|
+
"setup": () => (/* binding */ setup),
|
|
51542
|
+
"utils": () => (/* binding */ utils)
|
|
51543
|
+
});
|
|
51544
|
+
|
|
51545
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
51546
|
+
var defineProperty = __webpack_require__(4942);
|
|
51547
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
51548
|
+
function _arrayWithHoles(arr) {
|
|
51549
|
+
if (Array.isArray(arr)) return arr;
|
|
51550
|
+
}
|
|
51551
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
51552
|
+
function _iterableToArrayLimit(arr, i) {
|
|
51553
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
51554
|
+
|
|
51555
|
+
if (_i == null) return;
|
|
51556
|
+
var _arr = [];
|
|
51557
|
+
var _n = true;
|
|
51558
|
+
var _d = false;
|
|
51559
|
+
|
|
51560
|
+
var _s, _e;
|
|
51561
|
+
|
|
51562
|
+
try {
|
|
51563
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
51564
|
+
_arr.push(_s.value);
|
|
51565
|
+
|
|
51566
|
+
if (i && _arr.length === i) break;
|
|
51567
|
+
}
|
|
51568
|
+
} catch (err) {
|
|
51569
|
+
_d = true;
|
|
51570
|
+
_e = err;
|
|
51571
|
+
} finally {
|
|
51572
|
+
try {
|
|
51573
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
51574
|
+
} finally {
|
|
51575
|
+
if (_d) throw _e;
|
|
51576
|
+
}
|
|
51577
|
+
}
|
|
51578
|
+
|
|
51579
|
+
return _arr;
|
|
51580
|
+
}
|
|
51581
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
51582
|
+
function _arrayLikeToArray(arr, len) {
|
|
51583
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
51584
|
+
|
|
51585
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
51586
|
+
arr2[i] = arr[i];
|
|
51587
|
+
}
|
|
51588
|
+
|
|
51589
|
+
return arr2;
|
|
51590
|
+
}
|
|
51591
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
51592
|
+
|
|
51593
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
51594
|
+
if (!o) return;
|
|
51595
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
51596
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
51597
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
51598
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
51599
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
51600
|
+
}
|
|
51601
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
51602
|
+
function _nonIterableRest() {
|
|
51603
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51604
|
+
}
|
|
51605
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
51606
|
+
|
|
51607
|
+
|
|
51608
|
+
|
|
51609
|
+
|
|
51610
|
+
function _slicedToArray(arr, i) {
|
|
51611
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
51612
|
+
}
|
|
51613
|
+
;// CONCATENATED MODULE: ./index.js
|
|
51434
51614
|
|
|
51435
51615
|
|
|
51436
51616
|
|
|
51437
51617
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
51438
51618
|
|
|
51439
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) {
|
|
51619
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
51440
51620
|
|
|
51441
51621
|
/* eslint-disable no-param-reassign */
|
|
51442
51622
|
__webpack_require__(2787);
|
|
@@ -51593,7 +51773,7 @@ function plain(text) {
|
|
|
51593
51773
|
|
|
51594
51774
|
var _setup = setup(text, opts);
|
|
51595
51775
|
|
|
51596
|
-
var _setup2 =
|
|
51776
|
+
var _setup2 = _slicedToArray(_setup, 2);
|
|
51597
51777
|
|
|
51598
51778
|
text = _setup2[0];
|
|
51599
51779
|
opts = _setup2[1];
|
|
@@ -51650,14 +51830,14 @@ function react(content) {
|
|
|
51650
51830
|
if (!content) return null;else if (typeof content === 'string') {
|
|
51651
51831
|
var _setup3 = setup(content, opts);
|
|
51652
51832
|
|
|
51653
|
-
var _setup4 =
|
|
51833
|
+
var _setup4 = _slicedToArray(_setup3, 2);
|
|
51654
51834
|
|
|
51655
51835
|
content = _setup4[0];
|
|
51656
51836
|
opts = _setup4[1];
|
|
51657
51837
|
} else {
|
|
51658
51838
|
var _setup5 = setup('', opts);
|
|
51659
51839
|
|
|
51660
|
-
var _setup6 =
|
|
51840
|
+
var _setup6 = _slicedToArray(_setup5, 2);
|
|
51661
51841
|
|
|
51662
51842
|
opts = _setup6[1];
|
|
51663
51843
|
}
|
|
@@ -51671,7 +51851,7 @@ function reactTOC(tree) {
|
|
|
51671
51851
|
|
|
51672
51852
|
var _setup7 = setup('', opts);
|
|
51673
51853
|
|
|
51674
|
-
var _setup8 =
|
|
51854
|
+
var _setup8 = _slicedToArray(_setup7, 2);
|
|
51675
51855
|
|
|
51676
51856
|
opts = _setup8[1];
|
|
51677
51857
|
var proc = processor(opts).use(rehypeReact, {
|
|
@@ -51708,7 +51888,7 @@ function html(text) {
|
|
|
51708
51888
|
|
|
51709
51889
|
var _setup9 = setup(text, opts);
|
|
51710
51890
|
|
|
51711
|
-
var _setup10 =
|
|
51891
|
+
var _setup10 = _slicedToArray(_setup9, 2);
|
|
51712
51892
|
|
|
51713
51893
|
text = _setup10[0];
|
|
51714
51894
|
opts = _setup10[1];
|
|
@@ -51724,7 +51904,7 @@ function hast(text) {
|
|
|
51724
51904
|
|
|
51725
51905
|
var _setup11 = setup(text, opts);
|
|
51726
51906
|
|
|
51727
|
-
var _setup12 =
|
|
51907
|
+
var _setup12 = _slicedToArray(_setup11, 2);
|
|
51728
51908
|
|
|
51729
51909
|
text = _setup12[0];
|
|
51730
51910
|
opts = _setup12[1];
|
|
@@ -51742,7 +51922,7 @@ function mdast(text) {
|
|
|
51742
51922
|
|
|
51743
51923
|
var _setup13 = setup(text, opts);
|
|
51744
51924
|
|
|
51745
|
-
var _setup14 =
|
|
51925
|
+
var _setup14 = _slicedToArray(_setup13, 2);
|
|
51746
51926
|
|
|
51747
51927
|
text = _setup14[0];
|
|
51748
51928
|
opts = _setup14[1];
|
|
@@ -51758,7 +51938,7 @@ function astToPlainText(node) {
|
|
|
51758
51938
|
|
|
51759
51939
|
var _setup15 = setup('', opts);
|
|
51760
51940
|
|
|
51761
|
-
var _setup16 =
|
|
51941
|
+
var _setup16 = _slicedToArray(_setup15, 2);
|
|
51762
51942
|
|
|
51763
51943
|
opts = _setup16[1];
|
|
51764
51944
|
return processor(opts).use(toPlainText).runSync(node);
|
|
@@ -51773,7 +51953,7 @@ function md(tree) {
|
|
|
51773
51953
|
|
|
51774
51954
|
var _setup17 = setup('', opts);
|
|
51775
51955
|
|
|
51776
|
-
var _setup18 =
|
|
51956
|
+
var _setup18 = _slicedToArray(_setup17, 2);
|
|
51777
51957
|
|
|
51778
51958
|
opts = _setup18[1];
|
|
51779
51959
|
return processor(opts).use(remarkStringify, opts.markdownOptions).use(customCompilers).stringify(tree);
|
|
@@ -51784,7 +51964,7 @@ var ReadMeMarkdown = function ReadMeMarkdown(text) {
|
|
|
51784
51964
|
return react(text, opts);
|
|
51785
51965
|
};
|
|
51786
51966
|
|
|
51787
|
-
/* harmony default export */ const
|
|
51967
|
+
/* harmony default export */ const index = (ReadMeMarkdown);
|
|
51788
51968
|
})();
|
|
51789
51969
|
|
|
51790
51970
|
/******/ return __webpack_exports__;
|
package/dist/main.node.js
CHANGED
|
@@ -25,6 +25,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
module.exports = _arrayLikeToArray;
|
|
28
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
28
29
|
|
|
29
30
|
/***/ }),
|
|
30
31
|
|
|
@@ -36,6 +37,7 @@ function _arrayWithHoles(arr) {
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
module.exports = _arrayWithHoles;
|
|
40
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
39
41
|
|
|
40
42
|
/***/ }),
|
|
41
43
|
|
|
@@ -49,6 +51,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
module.exports = _arrayWithoutHoles;
|
|
54
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
52
55
|
|
|
53
56
|
/***/ }),
|
|
54
57
|
|
|
@@ -64,6 +67,7 @@ function _assertThisInitialized(self) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
module.exports = _assertThisInitialized;
|
|
70
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
67
71
|
|
|
68
72
|
/***/ }),
|
|
69
73
|
|
|
@@ -77,6 +81,7 @@ function _classCallCheck(instance, Constructor) {
|
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
module.exports = _classCallCheck;
|
|
84
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
80
85
|
|
|
81
86
|
/***/ }),
|
|
82
87
|
|
|
@@ -100,6 +105,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
module.exports = _createClass;
|
|
108
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
103
109
|
|
|
104
110
|
/***/ }),
|
|
105
111
|
|
|
@@ -122,6 +128,7 @@ function _defineProperty(obj, key, value) {
|
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
module.exports = _defineProperty;
|
|
131
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
125
132
|
|
|
126
133
|
/***/ }),
|
|
127
134
|
|
|
@@ -143,10 +150,12 @@ function _extends() {
|
|
|
143
150
|
return target;
|
|
144
151
|
};
|
|
145
152
|
|
|
153
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
146
154
|
return _extends.apply(this, arguments);
|
|
147
155
|
}
|
|
148
156
|
|
|
149
157
|
module.exports = _extends;
|
|
158
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
150
159
|
|
|
151
160
|
/***/ }),
|
|
152
161
|
|
|
@@ -155,9 +164,10 @@ module.exports = _extends;
|
|
|
155
164
|
|
|
156
165
|
var superPropBase = __webpack_require__(8331);
|
|
157
166
|
|
|
158
|
-
function _get(
|
|
167
|
+
function _get() {
|
|
159
168
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
160
169
|
module.exports = _get = Reflect.get;
|
|
170
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
161
171
|
} else {
|
|
162
172
|
module.exports = _get = function _get(target, property, receiver) {
|
|
163
173
|
var base = superPropBase(target, property);
|
|
@@ -165,17 +175,20 @@ function _get(target, property, receiver) {
|
|
|
165
175
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
166
176
|
|
|
167
177
|
if (desc.get) {
|
|
168
|
-
return desc.get.call(receiver);
|
|
178
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
169
179
|
}
|
|
170
180
|
|
|
171
181
|
return desc.value;
|
|
172
182
|
};
|
|
183
|
+
|
|
184
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
173
185
|
}
|
|
174
186
|
|
|
175
|
-
return _get(
|
|
187
|
+
return _get.apply(this, arguments);
|
|
176
188
|
}
|
|
177
189
|
|
|
178
190
|
module.exports = _get;
|
|
191
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
179
192
|
|
|
180
193
|
/***/ }),
|
|
181
194
|
|
|
@@ -186,10 +199,12 @@ function _getPrototypeOf(o) {
|
|
|
186
199
|
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
187
200
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
188
201
|
};
|
|
202
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
189
203
|
return _getPrototypeOf(o);
|
|
190
204
|
}
|
|
191
205
|
|
|
192
206
|
module.exports = _getPrototypeOf;
|
|
207
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
193
208
|
|
|
194
209
|
/***/ }),
|
|
195
210
|
|
|
@@ -214,6 +229,7 @@ function _inherits(subClass, superClass) {
|
|
|
214
229
|
}
|
|
215
230
|
|
|
216
231
|
module.exports = _inherits;
|
|
232
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
217
233
|
|
|
218
234
|
/***/ }),
|
|
219
235
|
|
|
@@ -221,10 +237,11 @@ module.exports = _inherits;
|
|
|
221
237
|
/***/ ((module) => {
|
|
222
238
|
|
|
223
239
|
function _iterableToArray(iter) {
|
|
224
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
240
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
225
241
|
}
|
|
226
242
|
|
|
227
243
|
module.exports = _iterableToArray;
|
|
244
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
228
245
|
|
|
229
246
|
/***/ }),
|
|
230
247
|
|
|
@@ -232,14 +249,17 @@ module.exports = _iterableToArray;
|
|
|
232
249
|
/***/ ((module) => {
|
|
233
250
|
|
|
234
251
|
function _iterableToArrayLimit(arr, i) {
|
|
235
|
-
|
|
252
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
253
|
+
|
|
254
|
+
if (_i == null) return;
|
|
236
255
|
var _arr = [];
|
|
237
256
|
var _n = true;
|
|
238
257
|
var _d = false;
|
|
239
|
-
|
|
258
|
+
|
|
259
|
+
var _s, _e;
|
|
240
260
|
|
|
241
261
|
try {
|
|
242
|
-
for (
|
|
262
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
243
263
|
_arr.push(_s.value);
|
|
244
264
|
|
|
245
265
|
if (i && _arr.length === i) break;
|
|
@@ -259,6 +279,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
259
279
|
}
|
|
260
280
|
|
|
261
281
|
module.exports = _iterableToArrayLimit;
|
|
282
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
262
283
|
|
|
263
284
|
/***/ }),
|
|
264
285
|
|
|
@@ -270,6 +291,7 @@ function _nonIterableRest() {
|
|
|
270
291
|
}
|
|
271
292
|
|
|
272
293
|
module.exports = _nonIterableRest;
|
|
294
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
273
295
|
|
|
274
296
|
/***/ }),
|
|
275
297
|
|
|
@@ -281,6 +303,7 @@ function _nonIterableSpread() {
|
|
|
281
303
|
}
|
|
282
304
|
|
|
283
305
|
module.exports = _nonIterableSpread;
|
|
306
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
284
307
|
|
|
285
308
|
/***/ }),
|
|
286
309
|
|
|
@@ -309,6 +332,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
309
332
|
}
|
|
310
333
|
|
|
311
334
|
module.exports = _objectWithoutProperties;
|
|
335
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
312
336
|
|
|
313
337
|
/***/ }),
|
|
314
338
|
|
|
@@ -331,25 +355,29 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
331
355
|
}
|
|
332
356
|
|
|
333
357
|
module.exports = _objectWithoutPropertiesLoose;
|
|
358
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
334
359
|
|
|
335
360
|
/***/ }),
|
|
336
361
|
|
|
337
362
|
/***/ 8585:
|
|
338
363
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
339
364
|
|
|
340
|
-
var _typeof = __webpack_require__(8);
|
|
365
|
+
var _typeof = __webpack_require__(8)["default"];
|
|
341
366
|
|
|
342
367
|
var assertThisInitialized = __webpack_require__(1506);
|
|
343
368
|
|
|
344
369
|
function _possibleConstructorReturn(self, call) {
|
|
345
370
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
346
371
|
return call;
|
|
372
|
+
} else if (call !== void 0) {
|
|
373
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
347
374
|
}
|
|
348
375
|
|
|
349
376
|
return assertThisInitialized(self);
|
|
350
377
|
}
|
|
351
378
|
|
|
352
379
|
module.exports = _possibleConstructorReturn;
|
|
380
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
353
381
|
|
|
354
382
|
/***/ }),
|
|
355
383
|
|
|
@@ -362,10 +390,12 @@ function _setPrototypeOf(o, p) {
|
|
|
362
390
|
return o;
|
|
363
391
|
};
|
|
364
392
|
|
|
393
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
365
394
|
return _setPrototypeOf(o, p);
|
|
366
395
|
}
|
|
367
396
|
|
|
368
397
|
module.exports = _setPrototypeOf;
|
|
398
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
369
399
|
|
|
370
400
|
/***/ }),
|
|
371
401
|
|
|
@@ -385,6 +415,7 @@ function _slicedToArray(arr, i) {
|
|
|
385
415
|
}
|
|
386
416
|
|
|
387
417
|
module.exports = _slicedToArray;
|
|
418
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
388
419
|
|
|
389
420
|
/***/ }),
|
|
390
421
|
|
|
@@ -403,6 +434,7 @@ function _superPropBase(object, property) {
|
|
|
403
434
|
}
|
|
404
435
|
|
|
405
436
|
module.exports = _superPropBase;
|
|
437
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
406
438
|
|
|
407
439
|
/***/ }),
|
|
408
440
|
|
|
@@ -422,6 +454,7 @@ function _toArray(arr) {
|
|
|
422
454
|
}
|
|
423
455
|
|
|
424
456
|
module.exports = _toArray;
|
|
457
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
425
458
|
|
|
426
459
|
/***/ }),
|
|
427
460
|
|
|
@@ -441,6 +474,7 @@ function _toConsumableArray(arr) {
|
|
|
441
474
|
}
|
|
442
475
|
|
|
443
476
|
module.exports = _toConsumableArray;
|
|
477
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
444
478
|
|
|
445
479
|
/***/ }),
|
|
446
480
|
|
|
@@ -454,16 +488,21 @@ function _typeof(obj) {
|
|
|
454
488
|
module.exports = _typeof = function _typeof(obj) {
|
|
455
489
|
return typeof obj;
|
|
456
490
|
};
|
|
491
|
+
|
|
492
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
457
493
|
} else {
|
|
458
494
|
module.exports = _typeof = function _typeof(obj) {
|
|
459
495
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
460
496
|
};
|
|
497
|
+
|
|
498
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
461
499
|
}
|
|
462
500
|
|
|
463
501
|
return _typeof(obj);
|
|
464
502
|
}
|
|
465
503
|
|
|
466
504
|
module.exports = _typeof;
|
|
505
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
467
506
|
|
|
468
507
|
/***/ }),
|
|
469
508
|
|
|
@@ -482,6 +521,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
482
521
|
}
|
|
483
522
|
|
|
484
523
|
module.exports = _unsupportedIterableToArray;
|
|
524
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
485
525
|
|
|
486
526
|
/***/ }),
|
|
487
527
|
|
|
@@ -10720,7 +10760,7 @@ module.exports = function CalloutCompiler() {
|
|
|
10720
10760
|
|
|
10721
10761
|
visitors['rdme-callout'] = function compile(node) {
|
|
10722
10762
|
var block = this.block(node).replace(/\n/g, '\n> ');
|
|
10723
|
-
block = "> ".concat(block);
|
|
10763
|
+
block = "> ".concat(node.data.hProperties.icon, " ").concat(block);
|
|
10724
10764
|
return block;
|
|
10725
10765
|
};
|
|
10726
10766
|
};
|
|
@@ -10759,16 +10799,22 @@ module.exports = function DivCompiler() {
|
|
|
10759
10799
|
/***/ }),
|
|
10760
10800
|
|
|
10761
10801
|
/***/ 4338:
|
|
10762
|
-
/***/ ((module) => {
|
|
10802
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
10803
|
+
|
|
10804
|
+
var _defineProperty = __webpack_require__(9713);
|
|
10805
|
+
|
|
10806
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
10807
|
+
|
|
10808
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
10763
10809
|
|
|
10764
10810
|
function EmbedCompiler(node) {
|
|
10765
|
-
var
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10811
|
+
var data = node.data.hProperties;
|
|
10812
|
+
var _data$provider = data.provider,
|
|
10813
|
+
provider = _data$provider === void 0 ? 'embed' : _data$provider;
|
|
10814
|
+
provider = provider.replace(/^@/, '');
|
|
10815
|
+
return "\n[block:embed]\n".concat(JSON.stringify(_objectSpread(_objectSpread({}, data), {}, {
|
|
10816
|
+
provider: provider
|
|
10817
|
+
}), null, 2), "\n[/block]\n");
|
|
10772
10818
|
}
|
|
10773
10819
|
|
|
10774
10820
|
module.exports = function () {
|
|
@@ -10784,23 +10830,49 @@ module.exports = function () {
|
|
|
10784
10830
|
|
|
10785
10831
|
var _slicedToArray = __webpack_require__(3038);
|
|
10786
10832
|
|
|
10787
|
-
var
|
|
10833
|
+
var _require = __webpack_require__(7589),
|
|
10834
|
+
imgSizeByWidth = _require.imgSizeByWidth;
|
|
10788
10835
|
|
|
10789
10836
|
module.exports = function FigureCompiler() {
|
|
10790
10837
|
var Compiler = this.Compiler;
|
|
10791
10838
|
var visitors = Compiler.prototype.visitors;
|
|
10792
10839
|
|
|
10793
|
-
visitors.figcaption = function figcaptionCompiler(node) {
|
|
10794
|
-
var caption = nodeToString(node);
|
|
10795
|
-
return "<figcaption>".concat(caption, "</figcaption>");
|
|
10796
|
-
};
|
|
10797
|
-
|
|
10798
10840
|
visitors.figure = function figureCompiler(node) {
|
|
10799
10841
|
var _node$children = _slicedToArray(node.children, 2),
|
|
10800
10842
|
image = _node$children[0],
|
|
10801
10843
|
caption = _node$children[1];
|
|
10802
10844
|
|
|
10803
|
-
|
|
10845
|
+
var img = {
|
|
10846
|
+
image: [image.url, image.title],
|
|
10847
|
+
caption: this.block(caption),
|
|
10848
|
+
sizing: imgSizeByWidth[image.data.hProperties.width]
|
|
10849
|
+
};
|
|
10850
|
+
if (image.border) img.border = image.border;
|
|
10851
|
+
var block = {
|
|
10852
|
+
images: [img]
|
|
10853
|
+
};
|
|
10854
|
+
return "[block:image]\n".concat(JSON.stringify(block, null, 2), "\n[/block]");
|
|
10855
|
+
};
|
|
10856
|
+
};
|
|
10857
|
+
|
|
10858
|
+
/***/ }),
|
|
10859
|
+
|
|
10860
|
+
/***/ 3356:
|
|
10861
|
+
/***/ ((module) => {
|
|
10862
|
+
|
|
10863
|
+
module.exports = function ImageCompiler() {
|
|
10864
|
+
var Compiler = this.Compiler;
|
|
10865
|
+
var visitors = Compiler.prototype.visitors;
|
|
10866
|
+
var original = visitors.image;
|
|
10867
|
+
|
|
10868
|
+
visitors.image = function compile(node) {
|
|
10869
|
+
var _node$data, _node$data$hPropertie;
|
|
10870
|
+
|
|
10871
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
10872
|
+
args[_key - 1] = arguments[_key];
|
|
10873
|
+
}
|
|
10874
|
+
|
|
10875
|
+
return ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : (_node$data$hPropertie = _node$data.hProperties) === null || _node$data$hPropertie === void 0 ? void 0 : _node$data$hPropertie.className) === 'emoji' ? node.title : original.call.apply(original, [this, node].concat(args));
|
|
10804
10876
|
};
|
|
10805
10877
|
};
|
|
10806
10878
|
|
|
@@ -10819,7 +10891,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10819
10891
|
/* harmony export */ "rdmeEmbedCompiler": () => (/* reexport default from dynamic */ _embed__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
10820
10892
|
/* harmony export */ "rdmeVarCompiler": () => (/* reexport default from dynamic */ _var__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
10821
10893
|
/* harmony export */ "rdmeCalloutCompiler": () => (/* reexport default from dynamic */ _callout__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
10822
|
-
/* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_7___default.a)
|
|
10894
|
+
/* harmony export */ "rdmePinCompiler": () => (/* reexport default from dynamic */ _pin__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
10895
|
+
/* harmony export */ "imageCompiler": () => (/* reexport default from dynamic */ _image__WEBPACK_IMPORTED_MODULE_8___default.a)
|
|
10823
10896
|
/* harmony export */ });
|
|
10824
10897
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
|
|
10825
10898
|
/* harmony import */ var _div__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_div__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10837,6 +10910,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10837
10910
|
/* harmony import */ var _callout__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_callout__WEBPACK_IMPORTED_MODULE_6__);
|
|
10838
10911
|
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2151);
|
|
10839
10912
|
/* harmony import */ var _pin__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_pin__WEBPACK_IMPORTED_MODULE_7__);
|
|
10913
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3356);
|
|
10914
|
+
/* harmony import */ var _image__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_image__WEBPACK_IMPORTED_MODULE_8__);
|
|
10915
|
+
|
|
10840
10916
|
|
|
10841
10917
|
|
|
10842
10918
|
|
|
@@ -11313,10 +11389,21 @@ var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
|
|
|
11313
11389
|
};
|
|
11314
11390
|
};
|
|
11315
11391
|
|
|
11316
|
-
var
|
|
11392
|
+
var imgSizeValues = {
|
|
11317
11393
|
full: '100%',
|
|
11318
11394
|
original: 'auto'
|
|
11319
11395
|
};
|
|
11396
|
+
var imgWidthBySize = new Proxy(imgSizeValues, {
|
|
11397
|
+
get: function get(widths, size) {
|
|
11398
|
+
return size !== null && size !== void 0 && size.match(/^\d+$/) ? "".concat(size, "%") : size in widths ? widths[size] : size;
|
|
11399
|
+
}
|
|
11400
|
+
});
|
|
11401
|
+
var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
|
|
11402
|
+
get: function get(sizes, width) {
|
|
11403
|
+
var match = width === null || width === void 0 ? void 0 : width.match(/^(\d+)%$/);
|
|
11404
|
+
return match ? match[1] : width in sizes ? sizes[width] : width;
|
|
11405
|
+
}
|
|
11406
|
+
});
|
|
11320
11407
|
|
|
11321
11408
|
function tokenize(eat, value) {
|
|
11322
11409
|
var _this = this;
|
|
@@ -11396,7 +11483,6 @@ function tokenize(eat, value) {
|
|
|
11396
11483
|
url = _img$image[0],
|
|
11397
11484
|
title = _img$image[1];
|
|
11398
11485
|
|
|
11399
|
-
var size = img.sizing;
|
|
11400
11486
|
var block = {
|
|
11401
11487
|
type: 'image',
|
|
11402
11488
|
url: url,
|
|
@@ -11405,7 +11491,7 @@ function tokenize(eat, value) {
|
|
|
11405
11491
|
data: {
|
|
11406
11492
|
hProperties: {
|
|
11407
11493
|
className: img.border ? 'border' : '',
|
|
11408
|
-
width:
|
|
11494
|
+
width: imgWidthBySize[img.sizing]
|
|
11409
11495
|
}
|
|
11410
11496
|
}
|
|
11411
11497
|
};
|
|
@@ -11601,6 +11687,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
11601
11687
|
return parser;
|
|
11602
11688
|
};
|
|
11603
11689
|
|
|
11690
|
+
module.exports.imgSizeByWidth = imgSizeByWidth;
|
|
11691
|
+
|
|
11604
11692
|
/***/ }),
|
|
11605
11693
|
|
|
11606
11694
|
/***/ 2697:
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.34.0-next.1",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"browser": "dist/main.js",
|
|
8
8
|
"files": [
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@commitlint/config-angular": "^13.1.0",
|
|
73
73
|
"@commitlint/config-conventional": "^13.1.0",
|
|
74
74
|
"@hot-loader/react-dom": "^16.14.0",
|
|
75
|
-
"@readme/eslint-config": "^
|
|
75
|
+
"@readme/eslint-config": "^8.0.2",
|
|
76
76
|
"@readme/variable": "^13.5.4",
|
|
77
77
|
"@semantic-release/changelog": "^5.0.1",
|
|
78
78
|
"@semantic-release/git": "^9.0.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"css-loader": "^6.3.0",
|
|
84
84
|
"enzyme": "^3.11.0",
|
|
85
85
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
86
|
-
"eslint": "^
|
|
86
|
+
"eslint": "^8.2.0",
|
|
87
87
|
"husky": "^7.0.2",
|
|
88
88
|
"identity-obj-proxy": "^3.0.0",
|
|
89
89
|
"jest": "^27.2.1",
|