@readme/markdown 6.66.0-beta.7 → 6.66.0
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/components/Code/index.jsx +3 -3
- package/components/CodeTabs/index.jsx +3 -28
- package/components/index.js +0 -1
- package/dist/main.js +645 -2868
- package/dist/main.node.js +331 -410
- package/package.json +3 -10
- package/components/Div.jsx +0 -31
package/dist/main.node.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@readme/variable"), require("@tippyjs/react"), require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["@readme/variable", "@tippyjs/react", "react"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("@tippyjs/react"), require("react")) : factory(root["@readme/variable"], root["@tippyjs/react"], root["React"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(global, (__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__578__, __WEBPACK_EXTERNAL_MODULE__4466__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
2
12
|
/******/ var __webpack_modules__ = ({
|
|
3
13
|
|
|
4
14
|
/***/ 478:
|
|
@@ -7388,7 +7398,7 @@ var _objectWithoutProperties = __webpack_require__(215);
|
|
|
7388
7398
|
var _slicedToArray = __webpack_require__(7424);
|
|
7389
7399
|
var _excluded = ["baseUrl", "children", "href", "target", "title"];
|
|
7390
7400
|
var PropTypes = __webpack_require__(5697);
|
|
7391
|
-
var React = __webpack_require__(
|
|
7401
|
+
var React = __webpack_require__(4466);
|
|
7392
7402
|
var BaseUrlContext = __webpack_require__(6785);
|
|
7393
7403
|
|
|
7394
7404
|
// Nabbed from here:
|
|
@@ -7485,7 +7495,7 @@ AnchorWithContext.getHref = getHref;
|
|
|
7485
7495
|
var _extends = __webpack_require__(434);
|
|
7486
7496
|
var _toArray = __webpack_require__(1589);
|
|
7487
7497
|
var PropTypes = __webpack_require__(5697);
|
|
7488
|
-
var React = __webpack_require__(
|
|
7498
|
+
var React = __webpack_require__(4466);
|
|
7489
7499
|
var Callout = function Callout(props) {
|
|
7490
7500
|
var attributes = props.attributes,
|
|
7491
7501
|
theme = props.theme,
|
|
@@ -7535,7 +7545,7 @@ module.exports = Callout;
|
|
|
7535
7545
|
var _extends = __webpack_require__(434);
|
|
7536
7546
|
var copy = __webpack_require__(640);
|
|
7537
7547
|
var PropTypes = __webpack_require__(5697);
|
|
7538
|
-
var React = __webpack_require__(
|
|
7548
|
+
var React = __webpack_require__(4466);
|
|
7539
7549
|
|
|
7540
7550
|
// Only load CodeMirror in the browser, for SSR
|
|
7541
7551
|
// apps. Necessary because of people like this:
|
|
@@ -7597,8 +7607,7 @@ function Code(props) {
|
|
|
7597
7607
|
tokenizeVariables: true,
|
|
7598
7608
|
dark: theme === 'dark'
|
|
7599
7609
|
};
|
|
7600
|
-
var
|
|
7601
|
-
var codeContent = syntaxHighlighter && children ? syntaxHighlighter(code, language, codeOpts) : code || '';
|
|
7610
|
+
var codeContent = syntaxHighlighter && children ? syntaxHighlighter(children[0], language, codeOpts) : (children === null || children === void 0 ? void 0 : children[0]) || '';
|
|
7602
7611
|
return /*#__PURE__*/React.createElement(React.Fragment, null, copyButtons && /*#__PURE__*/React.createElement(CopyCode, {
|
|
7603
7612
|
className: "fa",
|
|
7604
7613
|
codeRef: codeRef
|
|
@@ -7625,7 +7634,7 @@ function CreateCode(_ref2) {
|
|
|
7625
7634
|
};
|
|
7626
7635
|
}
|
|
7627
7636
|
Code.propTypes = {
|
|
7628
|
-
children: PropTypes.
|
|
7637
|
+
children: PropTypes.arrayOf(PropTypes.string),
|
|
7629
7638
|
className: PropTypes.string,
|
|
7630
7639
|
copyButtons: PropTypes.bool,
|
|
7631
7640
|
lang: PropTypes.string,
|
|
@@ -7655,22 +7664,9 @@ var _slicedToArray = __webpack_require__(7424);
|
|
|
7655
7664
|
var _require = __webpack_require__(6841),
|
|
7656
7665
|
uppercase = _require.uppercase;
|
|
7657
7666
|
var PropTypes = __webpack_require__(5697);
|
|
7658
|
-
var React = __webpack_require__(
|
|
7659
|
-
var _require2 = __webpack_require__(
|
|
7667
|
+
var React = __webpack_require__(4466);
|
|
7668
|
+
var _require2 = __webpack_require__(4466),
|
|
7660
7669
|
useState = _require2.useState;
|
|
7661
|
-
var traverseProps = function traverseProps(props, fn) {
|
|
7662
|
-
if (!props) return;
|
|
7663
|
-
fn(props);
|
|
7664
|
-
if (props && 'children' in props) {
|
|
7665
|
-
if (Array.isArray(props.children)) {
|
|
7666
|
-
props.children.forEach(function (child) {
|
|
7667
|
-
return child.props && traverseProps(child.props, fn);
|
|
7668
|
-
});
|
|
7669
|
-
} else {
|
|
7670
|
-
traverseProps(props.children.props, fn);
|
|
7671
|
-
}
|
|
7672
|
-
}
|
|
7673
|
-
};
|
|
7674
7670
|
var CodeTabs = function CodeTabs(props) {
|
|
7675
7671
|
var children = props.children,
|
|
7676
7672
|
theme = props.theme;
|
|
@@ -7690,23 +7686,16 @@ var CodeTabs = function CodeTabs(props) {
|
|
|
7690
7686
|
codeblocks[index].classList.add('CodeTabs_active');
|
|
7691
7687
|
setActiveIndex(index);
|
|
7692
7688
|
}
|
|
7693
|
-
var tabs = [];
|
|
7694
|
-
traverseProps(props, function (childProps) {
|
|
7695
|
-
if ('meta' in childProps || 'lang' in childProps) {
|
|
7696
|
-
tabs.push({
|
|
7697
|
-
meta: childProps.meta,
|
|
7698
|
-
lang: childProps.lang
|
|
7699
|
-
});
|
|
7700
|
-
}
|
|
7701
|
-
});
|
|
7702
7689
|
return /*#__PURE__*/React.createElement("div", {
|
|
7703
7690
|
className: "CodeTabs CodeTabs_initial theme-".concat(theme)
|
|
7704
7691
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7705
7692
|
className: "CodeTabs-toolbar",
|
|
7706
7693
|
role: "tablist"
|
|
7707
|
-
},
|
|
7708
|
-
var
|
|
7709
|
-
|
|
7694
|
+
}, children.map(function (_ref2, i) {
|
|
7695
|
+
var pre = _ref2.props;
|
|
7696
|
+
var _pre$children$0$props = pre.children[0].props,
|
|
7697
|
+
meta = _pre$children$0$props.meta,
|
|
7698
|
+
lang = _pre$children$0$props.lang;
|
|
7710
7699
|
/* istanbul ignore next */
|
|
7711
7700
|
return /*#__PURE__*/React.createElement("button", {
|
|
7712
7701
|
key: i,
|
|
@@ -7724,7 +7713,7 @@ var CodeTabs = function CodeTabs(props) {
|
|
|
7724
7713
|
}, children));
|
|
7725
7714
|
};
|
|
7726
7715
|
CodeTabs.propTypes = {
|
|
7727
|
-
children: PropTypes.
|
|
7716
|
+
children: PropTypes.arrayOf(PropTypes.any).isRequired,
|
|
7728
7717
|
theme: PropTypes.string
|
|
7729
7718
|
};
|
|
7730
7719
|
function CreateCodeTabs(_ref3) {
|
|
@@ -7736,63 +7725,11 @@ function CreateCodeTabs(_ref3) {
|
|
|
7736
7725
|
}));
|
|
7737
7726
|
};
|
|
7738
7727
|
}
|
|
7739
|
-
CreateCodeTabs.sanitize = function (sanitizeSchema) {
|
|
7740
|
-
sanitizeSchema.attributes.div = ['className', 'tabs'];
|
|
7741
|
-
return sanitizeSchema;
|
|
7742
|
-
};
|
|
7743
7728
|
module.exports = CreateCodeTabs;
|
|
7744
7729
|
module.exports.CodeTabs = CodeTabs;
|
|
7745
7730
|
|
|
7746
7731
|
/***/ }),
|
|
7747
7732
|
|
|
7748
|
-
/***/ 996:
|
|
7749
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7750
|
-
|
|
7751
|
-
var _extends = __webpack_require__(434);
|
|
7752
|
-
var _objectWithoutProperties = __webpack_require__(215);
|
|
7753
|
-
var _excluded = ["components", "theme"];
|
|
7754
|
-
var PropTypes = __webpack_require__(5697);
|
|
7755
|
-
var React = __webpack_require__(3634);
|
|
7756
|
-
|
|
7757
|
-
/*
|
|
7758
|
-
* To get around hast/html sanitation, we pass custom components through using
|
|
7759
|
-
* className's. Then this Div component, can render the associated component
|
|
7760
|
-
* instead. This used to be done with a custom `React.createElement`, but for
|
|
7761
|
-
* mdx@v1.6, I don't see a way to customize that.
|
|
7762
|
-
*/
|
|
7763
|
-
|
|
7764
|
-
var Div = function Div(_ref) {
|
|
7765
|
-
var components = _ref.components,
|
|
7766
|
-
theme = _ref.theme,
|
|
7767
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
7768
|
-
if (Object.keys(components).includes(props.className)) {
|
|
7769
|
-
var Component = components[props.className];
|
|
7770
|
-
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
7771
|
-
theme: theme
|
|
7772
|
-
}, props));
|
|
7773
|
-
}
|
|
7774
|
-
|
|
7775
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
7776
|
-
return /*#__PURE__*/React.createElement("div", props);
|
|
7777
|
-
};
|
|
7778
|
-
Div.propTypes = {
|
|
7779
|
-
children: PropTypes.oneOf(PropTypes.arrayOf(PropTypes.any), PropTypes.object),
|
|
7780
|
-
className: PropTypes.string,
|
|
7781
|
-
components: PropTypes.object,
|
|
7782
|
-
theme: PropTypes.string.isRequired
|
|
7783
|
-
};
|
|
7784
|
-
module.exports = function (components, _ref2) {
|
|
7785
|
-
var theme = _ref2.theme;
|
|
7786
|
-
return function (props) {
|
|
7787
|
-
return /*#__PURE__*/React.createElement(Div, _extends({
|
|
7788
|
-
components: components,
|
|
7789
|
-
theme: theme
|
|
7790
|
-
}, props));
|
|
7791
|
-
};
|
|
7792
|
-
};
|
|
7793
|
-
|
|
7794
|
-
/***/ }),
|
|
7795
|
-
|
|
7796
7733
|
/***/ 1053:
|
|
7797
7734
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7798
7735
|
|
|
@@ -7809,7 +7746,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
7809
7746
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7810
7747
|
/* eslint-disable react/jsx-props-no-spreading, jsx-a11y/iframe-has-title */
|
|
7811
7748
|
var propTypes = __webpack_require__(5697);
|
|
7812
|
-
var React = __webpack_require__(
|
|
7749
|
+
var React = __webpack_require__(4466);
|
|
7813
7750
|
var Favicon = function Favicon(_ref) {
|
|
7814
7751
|
var src = _ref.src,
|
|
7815
7752
|
_ref$alt = _ref.alt,
|
|
@@ -7944,9 +7881,9 @@ module.exports = CreateEmbed;
|
|
|
7944
7881
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7945
7882
|
|
|
7946
7883
|
var _extends = __webpack_require__(434);
|
|
7947
|
-
var Tooltip = (__webpack_require__(
|
|
7884
|
+
var Tooltip = (__webpack_require__(578)["default"]);
|
|
7948
7885
|
var PropTypes = __webpack_require__(5697);
|
|
7949
|
-
var React = __webpack_require__(
|
|
7886
|
+
var React = __webpack_require__(4466);
|
|
7950
7887
|
var GlossaryContext = __webpack_require__(1252);
|
|
7951
7888
|
|
|
7952
7889
|
// https://github.com/readmeio/api-explorer/blob/0dedafcf71102feedaa4145040d3f57d79d95752/packages/api-explorer/src/lib/replace-vars.js#L8
|
|
@@ -8006,7 +7943,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8006
7943
|
*/
|
|
8007
7944
|
var escape = __webpack_require__(8686);
|
|
8008
7945
|
var PropTypes = __webpack_require__(5697);
|
|
8009
|
-
var React = __webpack_require__(
|
|
7946
|
+
var React = __webpack_require__(4466);
|
|
8010
7947
|
var MATCH_SCRIPT_TAGS = /<script\b[^>]*>([\s\S]*?)<\/script *>\n?/gim;
|
|
8011
7948
|
var extractScripts = function extractScripts() {
|
|
8012
7949
|
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -8104,7 +8041,7 @@ var _extends = __webpack_require__(434);
|
|
|
8104
8041
|
var _objectWithoutProperties = __webpack_require__(215);
|
|
8105
8042
|
var _excluded = ["tag", "showAnchorIcons"];
|
|
8106
8043
|
var PropTypes = __webpack_require__(5697);
|
|
8107
|
-
var React = __webpack_require__(
|
|
8044
|
+
var React = __webpack_require__(4466);
|
|
8108
8045
|
function Heading(_ref) {
|
|
8109
8046
|
var tag = _ref.tag,
|
|
8110
8047
|
showAnchorIcons = _ref.showAnchorIcons,
|
|
@@ -8182,7 +8119,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8182
8119
|
/* eslint-disable no-param-reassign, react/jsx-props-no-spreading, no-fallthrough */
|
|
8183
8120
|
|
|
8184
8121
|
var PropTypes = __webpack_require__(5697);
|
|
8185
|
-
var React = __webpack_require__(
|
|
8122
|
+
var React = __webpack_require__(4466);
|
|
8186
8123
|
var Image = /*#__PURE__*/function (_React$Component) {
|
|
8187
8124
|
"use strict";
|
|
8188
8125
|
|
|
@@ -8308,7 +8245,7 @@ module.exports = CreateImage;
|
|
|
8308
8245
|
|
|
8309
8246
|
var _extends = __webpack_require__(434);
|
|
8310
8247
|
var PropTypes = __webpack_require__(5697);
|
|
8311
|
-
var React = __webpack_require__(
|
|
8248
|
+
var React = __webpack_require__(4466);
|
|
8312
8249
|
var Style = function Style(_ref) {
|
|
8313
8250
|
var children = _ref.children,
|
|
8314
8251
|
safeMode = _ref.safeMode;
|
|
@@ -8341,7 +8278,7 @@ module.exports = CreateStyle;
|
|
|
8341
8278
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8342
8279
|
|
|
8343
8280
|
var PropTypes = __webpack_require__(5697);
|
|
8344
|
-
var React = __webpack_require__(
|
|
8281
|
+
var React = __webpack_require__(4466);
|
|
8345
8282
|
function Table(props) {
|
|
8346
8283
|
var children = props.children;
|
|
8347
8284
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -8361,7 +8298,7 @@ module.exports = Table;
|
|
|
8361
8298
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8362
8299
|
|
|
8363
8300
|
var PropTypes = __webpack_require__(5697);
|
|
8364
|
-
var React = __webpack_require__(
|
|
8301
|
+
var React = __webpack_require__(4466);
|
|
8365
8302
|
function TableOfContents(_ref) {
|
|
8366
8303
|
var children = _ref.children;
|
|
8367
8304
|
return /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("ul", {
|
|
@@ -8392,15 +8329,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8392
8329
|
/* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_1___default.a),
|
|
8393
8330
|
/* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_2___default.a),
|
|
8394
8331
|
/* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default.a),
|
|
8395
|
-
/* harmony export */ "
|
|
8396
|
-
/* harmony export */ "
|
|
8397
|
-
/* harmony export */ "
|
|
8398
|
-
/* harmony export */ "
|
|
8399
|
-
/* harmony export */ "
|
|
8400
|
-
/* harmony export */ "
|
|
8401
|
-
/* harmony export */ "
|
|
8402
|
-
/* harmony export */ "
|
|
8403
|
-
/* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_12___default.a)
|
|
8332
|
+
/* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
8333
|
+
/* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
8334
|
+
/* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
8335
|
+
/* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
8336
|
+
/* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_8___default.a),
|
|
8337
|
+
/* harmony export */ "Style": () => (/* reexport default from dynamic */ _Style__WEBPACK_IMPORTED_MODULE_9___default.a),
|
|
8338
|
+
/* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_10___default.a),
|
|
8339
|
+
/* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_11___default.a)
|
|
8404
8340
|
/* harmony export */ });
|
|
8405
8341
|
/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8447);
|
|
8406
8342
|
/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Anchor__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8410,25 +8346,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8410
8346
|
/* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Code__WEBPACK_IMPORTED_MODULE_2__);
|
|
8411
8347
|
/* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6553);
|
|
8412
8348
|
/* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_CodeTabs__WEBPACK_IMPORTED_MODULE_3__);
|
|
8413
|
-
/* harmony import */ var
|
|
8414
|
-
/* harmony import */ var
|
|
8415
|
-
/* harmony import */ var
|
|
8416
|
-
/* harmony import */ var
|
|
8417
|
-
/* harmony import */ var
|
|
8418
|
-
/* harmony import */ var
|
|
8419
|
-
/* harmony import */ var
|
|
8420
|
-
/* harmony import */ var
|
|
8421
|
-
/* harmony import */ var
|
|
8422
|
-
/* harmony import */ var
|
|
8423
|
-
/* harmony import */ var
|
|
8424
|
-
/* harmony import */ var
|
|
8425
|
-
/* harmony import */ var
|
|
8426
|
-
/* harmony import */ var
|
|
8427
|
-
/* harmony import */ var
|
|
8428
|
-
/* harmony import */ var
|
|
8429
|
-
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4479);
|
|
8430
|
-
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_TableOfContents__WEBPACK_IMPORTED_MODULE_12__);
|
|
8431
|
-
|
|
8349
|
+
/* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1053);
|
|
8350
|
+
/* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Embed__WEBPACK_IMPORTED_MODULE_4__);
|
|
8351
|
+
/* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4337);
|
|
8352
|
+
/* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_GlossaryItem__WEBPACK_IMPORTED_MODULE_5__);
|
|
8353
|
+
/* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(822);
|
|
8354
|
+
/* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_HTMLBlock__WEBPACK_IMPORTED_MODULE_6__);
|
|
8355
|
+
/* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1984);
|
|
8356
|
+
/* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Heading__WEBPACK_IMPORTED_MODULE_7__);
|
|
8357
|
+
/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9167);
|
|
8358
|
+
/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Image__WEBPACK_IMPORTED_MODULE_8__);
|
|
8359
|
+
/* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3197);
|
|
8360
|
+
/* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Style__WEBPACK_IMPORTED_MODULE_9__);
|
|
8361
|
+
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(484);
|
|
8362
|
+
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Table__WEBPACK_IMPORTED_MODULE_10__);
|
|
8363
|
+
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4479);
|
|
8364
|
+
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_TableOfContents__WEBPACK_IMPORTED_MODULE_11__);
|
|
8432
8365
|
|
|
8433
8366
|
|
|
8434
8367
|
|
|
@@ -8447,7 +8380,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8447
8380
|
/***/ 6785:
|
|
8448
8381
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8449
8382
|
|
|
8450
|
-
var React = __webpack_require__(
|
|
8383
|
+
var React = __webpack_require__(4466);
|
|
8451
8384
|
module.exports = React.createContext('/');
|
|
8452
8385
|
|
|
8453
8386
|
/***/ }),
|
|
@@ -8455,11 +8388,33 @@ module.exports = React.createContext('/');
|
|
|
8455
8388
|
/***/ 1252:
|
|
8456
8389
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8457
8390
|
|
|
8458
|
-
var React = __webpack_require__(
|
|
8391
|
+
var React = __webpack_require__(4466);
|
|
8459
8392
|
module.exports = React.createContext([]);
|
|
8460
8393
|
|
|
8461
8394
|
/***/ }),
|
|
8462
8395
|
|
|
8396
|
+
/***/ 5894:
|
|
8397
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8398
|
+
|
|
8399
|
+
var React = __webpack_require__(4466);
|
|
8400
|
+
var CreateCodeTabs = __webpack_require__(6553);
|
|
8401
|
+
var createElement = function createElement(opts) {
|
|
8402
|
+
return (
|
|
8403
|
+
// eslint-disable-next-line react/display-name
|
|
8404
|
+
function (type, props) {
|
|
8405
|
+
// eslint-disable-next-line react/prop-types
|
|
8406
|
+
var rdmdType = type === 'div' && (props === null || props === void 0 ? void 0 : props.className) === 'code-tabs' ? CreateCodeTabs(opts) : type;
|
|
8407
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
8408
|
+
children[_key - 2] = arguments[_key];
|
|
8409
|
+
}
|
|
8410
|
+
return React.createElement.apply(React, [rdmdType, props].concat(children));
|
|
8411
|
+
}
|
|
8412
|
+
);
|
|
8413
|
+
};
|
|
8414
|
+
module.exports = createElement;
|
|
8415
|
+
|
|
8416
|
+
/***/ }),
|
|
8417
|
+
|
|
8463
8418
|
/***/ 1264:
|
|
8464
8419
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8465
8420
|
|
|
@@ -9372,6 +9327,8 @@ module.exports = function YamlCompiler() {
|
|
|
9372
9327
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9373
9328
|
|
|
9374
9329
|
var _slicedToArray = __webpack_require__(7424);
|
|
9330
|
+
var _require = __webpack_require__(2135),
|
|
9331
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9375
9332
|
var rgx = /^(#{1,6})(?!(?:#|\s))([^\n]+)\n/;
|
|
9376
9333
|
function tokenizer(eat, value) {
|
|
9377
9334
|
if (!rgx.test(value)) return true;
|
|
@@ -9388,11 +9345,11 @@ function tokenizer(eat, value) {
|
|
|
9388
9345
|
});
|
|
9389
9346
|
}
|
|
9390
9347
|
function parser() {
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9348
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9349
|
+
name: 'compactHeading',
|
|
9350
|
+
before: 'atxHeading',
|
|
9351
|
+
tokenizer: tokenizer
|
|
9352
|
+
});
|
|
9396
9353
|
}
|
|
9397
9354
|
module.exports = parser;
|
|
9398
9355
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9614,6 +9571,8 @@ var _setPrototypeOf = __webpack_require__(6015);
|
|
|
9614
9571
|
var _slicedToArray = __webpack_require__(7424);
|
|
9615
9572
|
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { var i = g[name]; if ("number" == typeof i) groups[name] = result[i];else { for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) { k++; } groups[name] = result[i[k]]; } return groups; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
|
|
9616
9573
|
var decode = __webpack_require__(7574);
|
|
9574
|
+
var _require = __webpack_require__(2135),
|
|
9575
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9617
9576
|
function tokenizer(eat, value) {
|
|
9618
9577
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
9619
9578
|
var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```[^\S\n]*){2,}/g;
|
|
@@ -9676,11 +9635,11 @@ function tokenizer(eat, value) {
|
|
|
9676
9635
|
});
|
|
9677
9636
|
}
|
|
9678
9637
|
function parser() {
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9638
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9639
|
+
name: 'codeTabs',
|
|
9640
|
+
before: 'indentedCode',
|
|
9641
|
+
tokenizer: tokenizer
|
|
9642
|
+
});
|
|
9684
9643
|
}
|
|
9685
9644
|
module.exports = parser;
|
|
9686
9645
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9695,6 +9654,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
9695
9654
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9696
9655
|
|
|
9697
9656
|
var _slicedToArray = __webpack_require__(7424);
|
|
9657
|
+
var _require = __webpack_require__(2135),
|
|
9658
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9698
9659
|
var rgx = /^\[([^\]]*)\]\((\S*) ["'](@\w+)"\)/;
|
|
9699
9660
|
function tokenizer(eat, value) {
|
|
9700
9661
|
if (!rgx.test(value)) return true;
|
|
@@ -9734,11 +9695,11 @@ function tokenizer(eat, value) {
|
|
|
9734
9695
|
});
|
|
9735
9696
|
}
|
|
9736
9697
|
function parser() {
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9698
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9699
|
+
name: 'embed',
|
|
9700
|
+
before: 'blankLine',
|
|
9701
|
+
tokenizer: tokenizer
|
|
9702
|
+
});
|
|
9742
9703
|
}
|
|
9743
9704
|
module.exports = parser;
|
|
9744
9705
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9753,6 +9714,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
9753
9714
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9754
9715
|
|
|
9755
9716
|
var Emoji = (__webpack_require__(368)/* .emoji */ .r);
|
|
9717
|
+
var _require = __webpack_require__(2135),
|
|
9718
|
+
insertInlineTokenizerBefore = _require.insertInlineTokenizerBefore;
|
|
9756
9719
|
var emojis = new Emoji();
|
|
9757
9720
|
var colon = ':';
|
|
9758
9721
|
function tokenize(eat, value, silent) {
|
|
@@ -9799,11 +9762,11 @@ function locate(value, fromIndex) {
|
|
|
9799
9762
|
}
|
|
9800
9763
|
tokenize.locator = locate;
|
|
9801
9764
|
function parser() {
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9765
|
+
insertInlineTokenizerBefore.call(this, {
|
|
9766
|
+
name: 'gemoji',
|
|
9767
|
+
before: 'text',
|
|
9768
|
+
tokenizer: tokenize
|
|
9769
|
+
});
|
|
9807
9770
|
}
|
|
9808
9771
|
module.exports = parser;
|
|
9809
9772
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9944,6 +9907,8 @@ var _slicedToArray = __webpack_require__(7424);
|
|
|
9944
9907
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9945
9908
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9946
9909
|
/* eslint-disable consistent-return */
|
|
9910
|
+
var _require = __webpack_require__(2135),
|
|
9911
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9947
9912
|
var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
|
|
9948
9913
|
var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
|
|
9949
9914
|
if (!json.sidebar) return node;
|
|
@@ -10227,15 +10192,16 @@ function tokenize(_ref) {
|
|
|
10227
10192
|
};
|
|
10228
10193
|
}
|
|
10229
10194
|
function parser() {
|
|
10230
|
-
var
|
|
10231
|
-
var tokenizers = Parser.prototype.blockTokenizers;
|
|
10232
|
-
var methods = Parser.prototype.blockMethods;
|
|
10233
|
-
tokenizers.magicBlocks = tokenize({
|
|
10195
|
+
var tokenizer = tokenize({
|
|
10234
10196
|
compatibilityMode: this.data('compatibilityMode'),
|
|
10235
10197
|
safeMode: this.data('safeMode'),
|
|
10236
10198
|
alwaysThrow: this.data('alwaysThrow')
|
|
10237
10199
|
});
|
|
10238
|
-
|
|
10200
|
+
insertBlockTokenizerBefore.call(this, {
|
|
10201
|
+
name: 'magicBlocks',
|
|
10202
|
+
before: 'blankLine',
|
|
10203
|
+
tokenizer: tokenizer
|
|
10204
|
+
});
|
|
10239
10205
|
}
|
|
10240
10206
|
module.exports = parser;
|
|
10241
10207
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -10251,11 +10217,54 @@ module.exports.imgSizeByWidth = imgSizeByWidth;
|
|
|
10251
10217
|
|
|
10252
10218
|
/***/ }),
|
|
10253
10219
|
|
|
10220
|
+
/***/ 2135:
|
|
10221
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10222
|
+
|
|
10223
|
+
"use strict";
|
|
10224
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10225
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10226
|
+
/* harmony export */ "insertBlockTokenizerBefore": () => (/* binding */ insertBlockTokenizerBefore),
|
|
10227
|
+
/* harmony export */ "insertInlineTokenizerBefore": () => (/* binding */ insertInlineTokenizerBefore)
|
|
10228
|
+
/* harmony export */ });
|
|
10229
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8416);
|
|
10230
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
10231
|
+
|
|
10232
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10233
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10234
|
+
function insertTokenizerBefore(_ref) {
|
|
10235
|
+
var name = _ref.name,
|
|
10236
|
+
before = _ref.before,
|
|
10237
|
+
tokenizer = _ref.tokenizer,
|
|
10238
|
+
_ref$type = _ref.type,
|
|
10239
|
+
type = _ref$type === void 0 ? 'block' : _ref$type;
|
|
10240
|
+
var Parser = this.Parser;
|
|
10241
|
+
var tokenizers = Parser.prototype["".concat(type, "Tokenizers")];
|
|
10242
|
+
var methods = Parser.prototype["".concat(type, "Methods")];
|
|
10243
|
+
var index = methods.indexOf(before);
|
|
10244
|
+
if (index === -1) {
|
|
10245
|
+
throw new Error("The '".concat(before, "' tokenizer does not exist!"));
|
|
10246
|
+
}
|
|
10247
|
+
tokenizers[name] = tokenizer;
|
|
10248
|
+
methods.splice(index, 0, name);
|
|
10249
|
+
}
|
|
10250
|
+
function insertBlockTokenizerBefore(args) {
|
|
10251
|
+
insertTokenizerBefore.call(this, args);
|
|
10252
|
+
}
|
|
10253
|
+
function insertInlineTokenizerBefore(args) {
|
|
10254
|
+
return insertTokenizerBefore.call(this, _objectSpread(_objectSpread({}, args), {}, {
|
|
10255
|
+
type: 'inline'
|
|
10256
|
+
}));
|
|
10257
|
+
}
|
|
10258
|
+
|
|
10259
|
+
/***/ }),
|
|
10260
|
+
|
|
10254
10261
|
/***/ 2697:
|
|
10255
10262
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
10256
10263
|
|
|
10257
|
-
var _require = __webpack_require__(
|
|
10264
|
+
var _require = __webpack_require__(3689),
|
|
10258
10265
|
VARIABLE_REGEXP = _require.VARIABLE_REGEXP;
|
|
10266
|
+
var _require2 = __webpack_require__(2135),
|
|
10267
|
+
insertInlineTokenizerBefore = _require2.insertInlineTokenizerBefore;
|
|
10259
10268
|
function tokenizeVariable(eat, value, silent) {
|
|
10260
10269
|
// Modifies the regular expression to match from
|
|
10261
10270
|
// the start of the line
|
|
@@ -10299,11 +10308,11 @@ function locate(value, fromIndex) {
|
|
|
10299
10308
|
}
|
|
10300
10309
|
tokenizeVariable.locator = locate;
|
|
10301
10310
|
function parser() {
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10311
|
+
insertInlineTokenizerBefore.call(this, {
|
|
10312
|
+
name: 'variable',
|
|
10313
|
+
before: 'text',
|
|
10314
|
+
tokenizer: tokenizeVariable
|
|
10315
|
+
});
|
|
10307
10316
|
}
|
|
10308
10317
|
module.exports = parser;
|
|
10309
10318
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -10453,9 +10462,11 @@ function transformer(ast) {
|
|
|
10453
10462
|
return [_objectSpread(_objectSpread({}, node), {}, {
|
|
10454
10463
|
children: [_objectSpread(_objectSpread({}, node.children[0]), {}, {
|
|
10455
10464
|
value: valuesToString(header)
|
|
10456
|
-
}), _objectSpread(_objectSpread({}, node.children[1]), {}, {
|
|
10465
|
+
}), body ? _objectSpread(_objectSpread({}, node.children[1]), {}, {
|
|
10457
10466
|
value: valuesToString(body)
|
|
10458
|
-
})]
|
|
10467
|
+
}) : null].filter(function (x) {
|
|
10468
|
+
return x;
|
|
10469
|
+
})
|
|
10459
10470
|
})];
|
|
10460
10471
|
}
|
|
10461
10472
|
return [node];
|
|
@@ -10468,7 +10479,7 @@ module.exports.tableFlattening = transformer;
|
|
|
10468
10479
|
|
|
10469
10480
|
/***/ }),
|
|
10470
10481
|
|
|
10471
|
-
/***/
|
|
10482
|
+
/***/ 2442:
|
|
10472
10483
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10473
10484
|
|
|
10474
10485
|
"use strict";
|
|
@@ -10477,7 +10488,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10477
10488
|
|
|
10478
10489
|
// EXPORTS
|
|
10479
10490
|
__webpack_require__.d(__webpack_exports__, {
|
|
10480
|
-
"
|
|
10491
|
+
"rehypeTransformers": () => (/* binding */ rehypeTransformers),
|
|
10492
|
+
"remarkTransformers": () => (/* binding */ remarkTransformers)
|
|
10481
10493
|
});
|
|
10482
10494
|
|
|
10483
10495
|
;// CONCATENATED MODULE: ./node_modules/unist-util-visit/node_modules/unist-util-is/index.js
|
|
@@ -10996,9 +11008,43 @@ var singleCodeTabs = function singleCodeTabs() {
|
|
|
10996
11008
|
};
|
|
10997
11009
|
};
|
|
10998
11010
|
/* harmony default export */ const single_code_tabs = (singleCodeTabs);
|
|
11011
|
+
;// CONCATENATED MODULE: ./processor/transform/table-cell-inline-code.js
|
|
11012
|
+
|
|
11013
|
+
var rxEscapedPipe = /\\\|/g;
|
|
11014
|
+
|
|
11015
|
+
/**
|
|
11016
|
+
* HAST Transformer that finds all inline code nodes within table cells and
|
|
11017
|
+
* unescapes any escaped pipe chars so that the editor outputs them without
|
|
11018
|
+
* escape chars.
|
|
11019
|
+
*
|
|
11020
|
+
* This appears to be a bug with remark-parse < ~8
|
|
11021
|
+
*/
|
|
11022
|
+
var tableCellInlineCode = function tableCellInlineCode() {
|
|
11023
|
+
return function (tree) {
|
|
11024
|
+
visit(tree, [{
|
|
11025
|
+
tagName: 'th'
|
|
11026
|
+
}, {
|
|
11027
|
+
tagName: 'td'
|
|
11028
|
+
}], function (tableCellNode) {
|
|
11029
|
+
visit(tableCellNode, {
|
|
11030
|
+
tagName: 'code'
|
|
11031
|
+
}, function (inlineCodeNode) {
|
|
11032
|
+
var textNode = inlineCodeNode.children[0];
|
|
11033
|
+
if (rxEscapedPipe.test(textNode.value)) {
|
|
11034
|
+
textNode.value = textNode.value.replace(rxEscapedPipe, '|');
|
|
11035
|
+
}
|
|
11036
|
+
});
|
|
11037
|
+
return SKIP;
|
|
11038
|
+
});
|
|
11039
|
+
};
|
|
11040
|
+
};
|
|
11041
|
+
/* harmony default export */ const table_cell_inline_code = (tableCellInlineCode);
|
|
10999
11042
|
;// CONCATENATED MODULE: ./processor/transform/index.js
|
|
11000
11043
|
|
|
11001
11044
|
|
|
11045
|
+
var remarkTransformers = [single_code_tabs];
|
|
11046
|
+
var rehypeTransformers = [table_cell_inline_code];
|
|
11047
|
+
|
|
11002
11048
|
/***/ }),
|
|
11003
11049
|
|
|
11004
11050
|
/***/ 8229:
|
|
@@ -11096,9 +11142,8 @@ function ccount(value, character) {
|
|
|
11096
11142
|
/***/ }),
|
|
11097
11143
|
|
|
11098
11144
|
/***/ 6313:
|
|
11099
|
-
/***/ ((module
|
|
11145
|
+
/***/ ((module) => {
|
|
11100
11146
|
|
|
11101
|
-
/* provided dependency */ var Buffer = __webpack_require__(4300)["Buffer"];
|
|
11102
11147
|
var clone = (function() {
|
|
11103
11148
|
'use strict';
|
|
11104
11149
|
|
|
@@ -30333,9 +30378,9 @@ function pipelineParse(p, ctx) {
|
|
|
30333
30378
|
function pipelineRun(p, ctx, next) {
|
|
30334
30379
|
p.run(ctx.tree, ctx.file, done)
|
|
30335
30380
|
|
|
30336
|
-
function done(
|
|
30337
|
-
if (
|
|
30338
|
-
next(
|
|
30381
|
+
function done(error, tree, file) {
|
|
30382
|
+
if (error) {
|
|
30383
|
+
next(error)
|
|
30339
30384
|
} else {
|
|
30340
30385
|
ctx.tree = tree
|
|
30341
30386
|
ctx.file = file
|
|
@@ -30346,14 +30391,17 @@ function pipelineRun(p, ctx, next) {
|
|
|
30346
30391
|
|
|
30347
30392
|
function pipelineStringify(p, ctx) {
|
|
30348
30393
|
var result = p.stringify(ctx.tree, ctx.file)
|
|
30349
|
-
var file = ctx.file
|
|
30350
30394
|
|
|
30351
30395
|
if (result === undefined || result === null) {
|
|
30352
30396
|
// Empty.
|
|
30353
30397
|
} else if (typeof result === 'string' || buffer(result)) {
|
|
30354
|
-
file
|
|
30398
|
+
if ('value' in ctx.file) {
|
|
30399
|
+
ctx.file.value = result
|
|
30400
|
+
}
|
|
30401
|
+
|
|
30402
|
+
ctx.file.contents = result
|
|
30355
30403
|
} else {
|
|
30356
|
-
file.result = result
|
|
30404
|
+
ctx.file.result = result
|
|
30357
30405
|
}
|
|
30358
30406
|
}
|
|
30359
30407
|
|
|
@@ -30362,8 +30410,8 @@ function unified() {
|
|
|
30362
30410
|
var attachers = []
|
|
30363
30411
|
var transformers = trough()
|
|
30364
30412
|
var namespace = {}
|
|
30365
|
-
var frozen = false
|
|
30366
30413
|
var freezeIndex = -1
|
|
30414
|
+
var frozen
|
|
30367
30415
|
|
|
30368
30416
|
// Data management.
|
|
30369
30417
|
processor.data = data
|
|
@@ -30389,10 +30437,9 @@ function unified() {
|
|
|
30389
30437
|
// Create a new processor based on the processor in the current scope.
|
|
30390
30438
|
function processor() {
|
|
30391
30439
|
var destination = unified()
|
|
30392
|
-
var length = attachers.length
|
|
30393
30440
|
var index = -1
|
|
30394
30441
|
|
|
30395
|
-
while (++index < length) {
|
|
30442
|
+
while (++index < attachers.length) {
|
|
30396
30443
|
destination.use.apply(null, attachers[index])
|
|
30397
30444
|
}
|
|
30398
30445
|
|
|
@@ -30410,8 +30457,6 @@ function unified() {
|
|
|
30410
30457
|
// In essence, always invoke this when exporting a processor.
|
|
30411
30458
|
function freeze() {
|
|
30412
30459
|
var values
|
|
30413
|
-
var plugin
|
|
30414
|
-
var options
|
|
30415
30460
|
var transformer
|
|
30416
30461
|
|
|
30417
30462
|
if (frozen) {
|
|
@@ -30420,19 +30465,16 @@ function unified() {
|
|
|
30420
30465
|
|
|
30421
30466
|
while (++freezeIndex < attachers.length) {
|
|
30422
30467
|
values = attachers[freezeIndex]
|
|
30423
|
-
plugin = values[0]
|
|
30424
|
-
options = values[1]
|
|
30425
|
-
transformer = null
|
|
30426
30468
|
|
|
30427
|
-
if (
|
|
30469
|
+
if (values[1] === false) {
|
|
30428
30470
|
continue
|
|
30429
30471
|
}
|
|
30430
30472
|
|
|
30431
|
-
if (
|
|
30473
|
+
if (values[1] === true) {
|
|
30432
30474
|
values[1] = undefined
|
|
30433
30475
|
}
|
|
30434
30476
|
|
|
30435
|
-
transformer =
|
|
30477
|
+
transformer = values[0].apply(processor, values.slice(1))
|
|
30436
30478
|
|
|
30437
30479
|
if (typeof transformer === 'function') {
|
|
30438
30480
|
transformers.use(transformer)
|
|
@@ -30452,9 +30494,7 @@ function unified() {
|
|
|
30452
30494
|
// Set `key`.
|
|
30453
30495
|
if (arguments.length === 2) {
|
|
30454
30496
|
assertUnfrozen('data', frozen)
|
|
30455
|
-
|
|
30456
30497
|
namespace[key] = value
|
|
30457
|
-
|
|
30458
30498
|
return processor
|
|
30459
30499
|
}
|
|
30460
30500
|
|
|
@@ -30528,16 +30568,12 @@ function unified() {
|
|
|
30528
30568
|
}
|
|
30529
30569
|
|
|
30530
30570
|
function addList(plugins) {
|
|
30531
|
-
var
|
|
30532
|
-
var index
|
|
30571
|
+
var index = -1
|
|
30533
30572
|
|
|
30534
30573
|
if (plugins === null || plugins === undefined) {
|
|
30535
30574
|
// Empty.
|
|
30536
30575
|
} else if (typeof plugins === 'object' && 'length' in plugins) {
|
|
30537
|
-
|
|
30538
|
-
index = -1
|
|
30539
|
-
|
|
30540
|
-
while (++index < length) {
|
|
30576
|
+
while (++index < plugins.length) {
|
|
30541
30577
|
add(plugins[index])
|
|
30542
30578
|
}
|
|
30543
30579
|
} else {
|
|
@@ -30550,7 +30586,7 @@ function unified() {
|
|
|
30550
30586
|
|
|
30551
30587
|
if (entry) {
|
|
30552
30588
|
if (plain(entry[1]) && plain(value)) {
|
|
30553
|
-
value = extend(entry[1], value)
|
|
30589
|
+
value = extend(true, entry[1], value)
|
|
30554
30590
|
}
|
|
30555
30591
|
|
|
30556
30592
|
entry[1] = value
|
|
@@ -30561,15 +30597,11 @@ function unified() {
|
|
|
30561
30597
|
}
|
|
30562
30598
|
|
|
30563
30599
|
function find(plugin) {
|
|
30564
|
-
var length = attachers.length
|
|
30565
30600
|
var index = -1
|
|
30566
|
-
var entry
|
|
30567
|
-
|
|
30568
|
-
while (++index < length) {
|
|
30569
|
-
entry = attachers[index]
|
|
30570
30601
|
|
|
30571
|
-
|
|
30572
|
-
|
|
30602
|
+
while (++index < attachers.length) {
|
|
30603
|
+
if (attachers[index][0] === plugin) {
|
|
30604
|
+
return attachers[index]
|
|
30573
30605
|
}
|
|
30574
30606
|
}
|
|
30575
30607
|
}
|
|
@@ -30611,10 +30643,10 @@ function unified() {
|
|
|
30611
30643
|
function executor(resolve, reject) {
|
|
30612
30644
|
transformers.run(node, vfile(file), done)
|
|
30613
30645
|
|
|
30614
|
-
function done(
|
|
30646
|
+
function done(error, tree, file) {
|
|
30615
30647
|
tree = tree || node
|
|
30616
|
-
if (
|
|
30617
|
-
reject(
|
|
30648
|
+
if (error) {
|
|
30649
|
+
reject(error)
|
|
30618
30650
|
} else if (resolve) {
|
|
30619
30651
|
resolve(tree)
|
|
30620
30652
|
} else {
|
|
@@ -30627,8 +30659,8 @@ function unified() {
|
|
|
30627
30659
|
// Run transforms on a unist node representation of a file (in string or
|
|
30628
30660
|
// vfile representation), sync.
|
|
30629
30661
|
function runSync(node, file) {
|
|
30630
|
-
var complete = false
|
|
30631
30662
|
var result
|
|
30663
|
+
var complete
|
|
30632
30664
|
|
|
30633
30665
|
run(node, file, done)
|
|
30634
30666
|
|
|
@@ -30636,10 +30668,10 @@ function unified() {
|
|
|
30636
30668
|
|
|
30637
30669
|
return result
|
|
30638
30670
|
|
|
30639
|
-
function done(
|
|
30671
|
+
function done(error, tree) {
|
|
30640
30672
|
complete = true
|
|
30641
|
-
bail(err)
|
|
30642
30673
|
result = tree
|
|
30674
|
+
bail(error)
|
|
30643
30675
|
}
|
|
30644
30676
|
}
|
|
30645
30677
|
|
|
@@ -30681,9 +30713,9 @@ function unified() {
|
|
|
30681
30713
|
|
|
30682
30714
|
pipeline.run(processor, {file: file}, done)
|
|
30683
30715
|
|
|
30684
|
-
function done(
|
|
30685
|
-
if (
|
|
30686
|
-
reject(
|
|
30716
|
+
function done(error) {
|
|
30717
|
+
if (error) {
|
|
30718
|
+
reject(error)
|
|
30687
30719
|
} else if (resolve) {
|
|
30688
30720
|
resolve(file)
|
|
30689
30721
|
} else {
|
|
@@ -30695,8 +30727,8 @@ function unified() {
|
|
|
30695
30727
|
|
|
30696
30728
|
// Process the given document (in string or vfile representation), sync.
|
|
30697
30729
|
function processSync(doc) {
|
|
30698
|
-
var complete = false
|
|
30699
30730
|
var file
|
|
30731
|
+
var complete
|
|
30700
30732
|
|
|
30701
30733
|
freeze()
|
|
30702
30734
|
assertParser('processSync', processor.Parser)
|
|
@@ -30709,9 +30741,9 @@ function unified() {
|
|
|
30709
30741
|
|
|
30710
30742
|
return file
|
|
30711
30743
|
|
|
30712
|
-
function done(
|
|
30744
|
+
function done(error) {
|
|
30713
30745
|
complete = true
|
|
30714
|
-
bail(
|
|
30746
|
+
bail(error)
|
|
30715
30747
|
}
|
|
30716
30748
|
}
|
|
30717
30749
|
}
|
|
@@ -31898,67 +31930,43 @@ function factory(key, options) {
|
|
|
31898
31930
|
|
|
31899
31931
|
/***/ }),
|
|
31900
31932
|
|
|
31901
|
-
/***/
|
|
31902
|
-
/***/ ((module) => {
|
|
31903
|
-
|
|
31904
|
-
"use strict";
|
|
31905
|
-
module.exports = require("@mdx-js/runtime");
|
|
31906
|
-
|
|
31907
|
-
/***/ }),
|
|
31908
|
-
|
|
31909
|
-
/***/ 1882:
|
|
31910
|
-
/***/ ((module) => {
|
|
31911
|
-
|
|
31912
|
-
"use strict";
|
|
31913
|
-
module.exports = require("@readme/variable");
|
|
31914
|
-
|
|
31915
|
-
/***/ }),
|
|
31916
|
-
|
|
31917
|
-
/***/ 1918:
|
|
31918
|
-
/***/ ((module) => {
|
|
31919
|
-
|
|
31920
|
-
"use strict";
|
|
31921
|
-
module.exports = require("@tippyjs/react");
|
|
31922
|
-
|
|
31923
|
-
/***/ }),
|
|
31924
|
-
|
|
31925
|
-
/***/ 281:
|
|
31933
|
+
/***/ 1017:
|
|
31926
31934
|
/***/ ((module) => {
|
|
31927
31935
|
|
|
31928
31936
|
"use strict";
|
|
31929
|
-
module.exports = require("
|
|
31937
|
+
module.exports = require("path");
|
|
31930
31938
|
|
|
31931
31939
|
/***/ }),
|
|
31932
31940
|
|
|
31933
|
-
/***/
|
|
31941
|
+
/***/ 3837:
|
|
31934
31942
|
/***/ ((module) => {
|
|
31935
31943
|
|
|
31936
31944
|
"use strict";
|
|
31937
|
-
module.exports = require("
|
|
31945
|
+
module.exports = require("util");
|
|
31938
31946
|
|
|
31939
31947
|
/***/ }),
|
|
31940
31948
|
|
|
31941
|
-
/***/
|
|
31949
|
+
/***/ 3689:
|
|
31942
31950
|
/***/ ((module) => {
|
|
31943
31951
|
|
|
31944
31952
|
"use strict";
|
|
31945
|
-
module.exports =
|
|
31953
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3689__;
|
|
31946
31954
|
|
|
31947
31955
|
/***/ }),
|
|
31948
31956
|
|
|
31949
|
-
/***/
|
|
31957
|
+
/***/ 578:
|
|
31950
31958
|
/***/ ((module) => {
|
|
31951
31959
|
|
|
31952
31960
|
"use strict";
|
|
31953
|
-
module.exports =
|
|
31961
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__578__;
|
|
31954
31962
|
|
|
31955
31963
|
/***/ }),
|
|
31956
31964
|
|
|
31957
|
-
/***/
|
|
31965
|
+
/***/ 4466:
|
|
31958
31966
|
/***/ ((module) => {
|
|
31959
31967
|
|
|
31960
31968
|
"use strict";
|
|
31961
|
-
module.exports =
|
|
31969
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4466__;
|
|
31962
31970
|
|
|
31963
31971
|
/***/ }),
|
|
31964
31972
|
|
|
@@ -34281,112 +34289,40 @@ var __webpack_exports__ = {};
|
|
|
34281
34289
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
34282
34290
|
(() => {
|
|
34283
34291
|
"use strict";
|
|
34284
|
-
// ESM COMPAT FLAG
|
|
34285
34292
|
__webpack_require__.r(__webpack_exports__);
|
|
34286
|
-
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
|
|
34304
|
-
|
|
34305
|
-
|
|
34306
|
-
|
|
34307
|
-
var
|
|
34308
|
-
var
|
|
34309
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
34310
|
-
var slicedToArray = __webpack_require__(7424);
|
|
34311
|
-
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
34312
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
|
34313
|
-
var defineProperty = __webpack_require__(8416);
|
|
34314
|
-
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
34315
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
34316
|
-
var classCallCheck = __webpack_require__(6690);
|
|
34317
|
-
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
|
34318
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
|
|
34319
|
-
var createClass = __webpack_require__(9728);
|
|
34320
|
-
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
|
34321
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
|
34322
|
-
var inherits = __webpack_require__(1655);
|
|
34323
|
-
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
34324
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
34325
|
-
var possibleConstructorReturn = __webpack_require__(4993);
|
|
34326
|
-
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
34327
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
34328
|
-
var getPrototypeOf = __webpack_require__(3808);
|
|
34329
|
-
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
|
34330
|
-
// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React","umd":"react"}
|
|
34331
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_ = __webpack_require__(3634);
|
|
34332
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default = /*#__PURE__*/__webpack_require__.n(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_);
|
|
34333
|
-
;// CONCATENATED MODULE: ./lib/ErrorBoundary.js
|
|
34334
|
-
|
|
34335
|
-
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
|
|
34340
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34341
|
-
|
|
34342
|
-
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
34343
|
-
inherits_default()(ErrorBoundary, _React$Component);
|
|
34344
|
-
var _super = _createSuper(ErrorBoundary);
|
|
34345
|
-
function ErrorBoundary(props) {
|
|
34346
|
-
var _this;
|
|
34347
|
-
classCallCheck_default()(this, ErrorBoundary);
|
|
34348
|
-
_this = _super.call(this, props);
|
|
34349
|
-
_this.state = {
|
|
34350
|
-
hasError: false
|
|
34351
|
-
};
|
|
34352
|
-
return _this;
|
|
34353
|
-
}
|
|
34354
|
-
createClass_default()(ErrorBoundary, [{
|
|
34355
|
-
key: "render",
|
|
34356
|
-
value: function render() {
|
|
34357
|
-
if (this.state.hasError) {
|
|
34358
|
-
return null;
|
|
34359
|
-
}
|
|
34360
|
-
|
|
34361
|
-
// eslint-disable-next-line react/prop-types
|
|
34362
|
-
return this.props.children;
|
|
34363
|
-
}
|
|
34364
|
-
}], [{
|
|
34365
|
-
key: "getDerivedStateFromError",
|
|
34366
|
-
value: function getDerivedStateFromError(error) {
|
|
34367
|
-
// eslint-disable-next-line no-console
|
|
34368
|
-
console.error(error);
|
|
34369
|
-
return {
|
|
34370
|
-
hasError: true
|
|
34371
|
-
};
|
|
34372
|
-
}
|
|
34373
|
-
}]);
|
|
34374
|
-
return ErrorBoundary;
|
|
34375
|
-
}((external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()).Component);
|
|
34376
|
-
|
|
34377
|
-
;// CONCATENATED MODULE: ./index.jsx
|
|
34293
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34294
|
+
/* harmony export */ "Components": () => (/* binding */ Components),
|
|
34295
|
+
/* harmony export */ "astToPlainText": () => (/* binding */ astToPlainText),
|
|
34296
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
34297
|
+
/* harmony export */ "hast": () => (/* binding */ hast),
|
|
34298
|
+
/* harmony export */ "html": () => (/* binding */ html),
|
|
34299
|
+
/* harmony export */ "htmlProcessor": () => (/* binding */ htmlProcessor),
|
|
34300
|
+
/* harmony export */ "md": () => (/* binding */ md),
|
|
34301
|
+
/* harmony export */ "mdast": () => (/* binding */ mdast),
|
|
34302
|
+
/* harmony export */ "plain": () => (/* binding */ plain),
|
|
34303
|
+
/* harmony export */ "processor": () => (/* binding */ processor),
|
|
34304
|
+
/* harmony export */ "react": () => (/* binding */ react),
|
|
34305
|
+
/* harmony export */ "reactProcessor": () => (/* binding */ reactProcessor),
|
|
34306
|
+
/* harmony export */ "reactTOC": () => (/* binding */ reactTOC),
|
|
34307
|
+
/* harmony export */ "setup": () => (/* binding */ setup),
|
|
34308
|
+
/* harmony export */ "utils": () => (/* binding */ utils)
|
|
34309
|
+
/* harmony export */ });
|
|
34310
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(861);
|
|
34311
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
|
34312
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7424);
|
|
34313
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
|
|
34314
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8416);
|
|
34315
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
|
|
34378
34316
|
|
|
34379
34317
|
|
|
34380
34318
|
|
|
34381
34319
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34382
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
34320
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34383
34321
|
/* eslint-disable no-param-reassign */
|
|
34384
|
-
|
|
34385
34322
|
__webpack_require__(2787);
|
|
34386
|
-
var
|
|
34387
|
-
var Variable = __webpack_require__(1882);
|
|
34323
|
+
var Variable = __webpack_require__(3689);
|
|
34388
34324
|
var generateTOC = __webpack_require__(3263);
|
|
34389
|
-
var React = __webpack_require__(
|
|
34325
|
+
var React = __webpack_require__(4466);
|
|
34390
34326
|
var rehypeRaw = __webpack_require__(6388);
|
|
34391
34327
|
var rehypeReact = __webpack_require__(7431);
|
|
34392
34328
|
var rehypeSanitize = __webpack_require__(1667);
|
|
@@ -34394,7 +34330,6 @@ var rehypeStringify = __webpack_require__(7532);
|
|
|
34394
34330
|
var remarkBreaks = __webpack_require__(2558);
|
|
34395
34331
|
var remarkDisableTokenizers = __webpack_require__(9168);
|
|
34396
34332
|
var remarkFrontmatter = __webpack_require__(5941);
|
|
34397
|
-
var remarkMdx = __webpack_require__(281);
|
|
34398
34333
|
var remarkParse = __webpack_require__(2861);
|
|
34399
34334
|
var remarkRehype = __webpack_require__(8818);
|
|
34400
34335
|
var remarkSlug = __webpack_require__(4490);
|
|
@@ -34408,6 +34343,7 @@ var Components = __webpack_require__(3354);
|
|
|
34408
34343
|
var _require3 = __webpack_require__(8447),
|
|
34409
34344
|
getHref = _require3.getHref;
|
|
34410
34345
|
var BaseUrlContext = __webpack_require__(6785);
|
|
34346
|
+
var createElement = __webpack_require__(5894);
|
|
34411
34347
|
var CustomParsers = Object.values(__webpack_require__(8521));
|
|
34412
34348
|
var customCompilers = Object.values(__webpack_require__(9647));
|
|
34413
34349
|
var registerCustomComponents = __webpack_require__(1264);
|
|
@@ -34419,20 +34355,21 @@ var _require5 = __webpack_require__(8160),
|
|
|
34419
34355
|
var toPlainText = __webpack_require__(4792);
|
|
34420
34356
|
var sectionAnchorId = __webpack_require__(9620);
|
|
34421
34357
|
var tableFlattening = __webpack_require__(4625);
|
|
34422
|
-
var
|
|
34358
|
+
var _require6 = __webpack_require__(2442),
|
|
34359
|
+
remarkTransformers = _require6.remarkTransformers,
|
|
34360
|
+
rehypeTransformers = _require6.rehypeTransformers;
|
|
34423
34361
|
var createSchema = __webpack_require__(8229);
|
|
34424
|
-
var
|
|
34425
|
-
Callout = Components.Callout,
|
|
34362
|
+
var GlossaryItem = Components.GlossaryItem,
|
|
34426
34363
|
Code = Components.Code,
|
|
34364
|
+
Table = Components.Table,
|
|
34365
|
+
Anchor = Components.Anchor,
|
|
34366
|
+
Heading = Components.Heading,
|
|
34367
|
+
Callout = Components.Callout,
|
|
34427
34368
|
CodeTabs = Components.CodeTabs,
|
|
34428
|
-
|
|
34369
|
+
Image = Components.Image,
|
|
34429
34370
|
Embed = Components.Embed,
|
|
34430
|
-
GlossaryItem = Components.GlossaryItem,
|
|
34431
34371
|
HTMLBlock = Components.HTMLBlock,
|
|
34432
|
-
Heading = Components.Heading,
|
|
34433
|
-
Image = Components.Image,
|
|
34434
34372
|
Style = Components.Style,
|
|
34435
|
-
Table = Components.Table,
|
|
34436
34373
|
TableOfContents = Components.TableOfContents;
|
|
34437
34374
|
|
|
34438
34375
|
|
|
@@ -34472,25 +34409,27 @@ var utils = {
|
|
|
34472
34409
|
* Core markdown to mdast processor
|
|
34473
34410
|
*/
|
|
34474
34411
|
function processor() {
|
|
34412
|
+
var _unified$use$use$data;
|
|
34475
34413
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34476
34414
|
var _setup = setup('', opts);
|
|
34477
|
-
var _setup2 =
|
|
34415
|
+
var _setup2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup, 2);
|
|
34478
34416
|
opts = _setup2[1];
|
|
34479
34417
|
var _opts = opts,
|
|
34480
34418
|
sanitize = _opts.sanitize;
|
|
34481
|
-
return unified().use(remarkParse, opts.markdownOptions).use(
|
|
34419
|
+
return (_unified$use$use$data = unified().use(remarkParse, opts.markdownOptions).use(remarkFrontmatter, ['yaml', 'toml']).data('settings', opts.settings).data('compatibilityMode', opts.compatibilityMode).data('alwaysThrow', opts.alwaysThrow).use(!opts.correctnewlines ? remarkBreaks : function () {}).use(CustomParsers.map(function (parser) {
|
|
34482
34420
|
var _parser$sanitize;
|
|
34483
34421
|
return ((_parser$sanitize = parser.sanitize) === null || _parser$sanitize === void 0 ? void 0 : _parser$sanitize.call(parser, sanitize)) || parser;
|
|
34484
|
-
})).use(
|
|
34422
|
+
}))).use.apply(_unified$use$use$data, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(remarkTransformers)).use(remarkSlug).use(remarkDisableTokenizers, opts.disableTokenizers);
|
|
34485
34423
|
}
|
|
34486
34424
|
|
|
34487
34425
|
/**
|
|
34488
34426
|
* Full markdown to html processor
|
|
34489
34427
|
*/
|
|
34490
34428
|
function htmlProcessor() {
|
|
34429
|
+
var _processor$use$use$us;
|
|
34491
34430
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34492
34431
|
var _setup3 = setup('', opts);
|
|
34493
|
-
var _setup4 =
|
|
34432
|
+
var _setup4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup3, 2);
|
|
34494
34433
|
opts = _setup4[1];
|
|
34495
34434
|
var _opts2 = opts,
|
|
34496
34435
|
sanitize = _opts2.sanitize;
|
|
@@ -34513,16 +34452,16 @@ function htmlProcessor() {
|
|
|
34513
34452
|
* - sanitize and remove any disallowed attributes
|
|
34514
34453
|
* - output the hast to a React vdom with our custom components
|
|
34515
34454
|
*/
|
|
34516
|
-
return processor(opts).use(remarkRehype, {
|
|
34455
|
+
return (_processor$use$use$us = processor(opts).use(remarkRehype, {
|
|
34517
34456
|
allowDangerousHtml: true
|
|
34518
|
-
}).use(rehypeRaw).use(rehypeSanitize, sanitize);
|
|
34457
|
+
}).use(rehypeRaw).use(rehypeSanitize, sanitize)).use.apply(_processor$use$use$us, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(rehypeTransformers));
|
|
34519
34458
|
}
|
|
34520
34459
|
function plain(text) {
|
|
34521
34460
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34522
34461
|
var components = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
34523
34462
|
if (!text) return null;
|
|
34524
34463
|
var _setup5 = setup(text, opts);
|
|
34525
|
-
var _setup6 =
|
|
34464
|
+
var _setup6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup5, 2);
|
|
34526
34465
|
text = _setup6[0];
|
|
34527
34466
|
opts = _setup6[1];
|
|
34528
34467
|
var proc = htmlProcessor(opts).use(rehypeReact, {
|
|
@@ -34544,41 +34483,37 @@ var PinWrap = function PinWrap(_ref) {
|
|
|
34544
34483
|
}, children);
|
|
34545
34484
|
}; // @todo: move this to it's own component
|
|
34546
34485
|
|
|
34547
|
-
var reactComponents = function reactComponents(opts) {
|
|
34548
|
-
var components = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34549
|
-
return _objectSpread({
|
|
34550
|
-
'html-block': HTMLBlock(opts),
|
|
34551
|
-
'rdme-callout': Callout,
|
|
34552
|
-
'readme-variable': Variable,
|
|
34553
|
-
'readme-glossary-item': GlossaryItem,
|
|
34554
|
-
'rdme-embed': Embed(opts),
|
|
34555
|
-
'rdme-pin': PinWrap,
|
|
34556
|
-
table: Table,
|
|
34557
|
-
a: Anchor,
|
|
34558
|
-
h1: Heading(1, opts),
|
|
34559
|
-
h2: Heading(2, opts),
|
|
34560
|
-
h3: Heading(3, opts),
|
|
34561
|
-
h4: Heading(4, opts),
|
|
34562
|
-
h5: Heading(5, opts),
|
|
34563
|
-
h6: Heading(6, opts),
|
|
34564
|
-
code: Code(opts),
|
|
34565
|
-
img: Image(opts),
|
|
34566
|
-
style: Style(opts),
|
|
34567
|
-
div: Div({
|
|
34568
|
-
'code-tabs': CodeTabs(opts)
|
|
34569
|
-
}, opts)
|
|
34570
|
-
}, registerCustomComponents(components, opts.sanitize, opts.customComponentPrefix));
|
|
34571
|
-
};
|
|
34572
34486
|
function reactProcessor() {
|
|
34573
34487
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34574
34488
|
var components = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34575
34489
|
var _setup7 = setup('', opts);
|
|
34576
|
-
var _setup8 =
|
|
34490
|
+
var _setup8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup7, 2);
|
|
34577
34491
|
opts = _setup8[1];
|
|
34492
|
+
var _opts3 = opts,
|
|
34493
|
+
sanitize = _opts3.sanitize;
|
|
34578
34494
|
return htmlProcessor(_objectSpread({}, opts)).use(sectionAnchorId).use(rehypeReact, {
|
|
34579
|
-
createElement:
|
|
34495
|
+
createElement: createElement(opts),
|
|
34580
34496
|
Fragment: React.Fragment,
|
|
34581
|
-
components:
|
|
34497
|
+
components: _objectSpread({
|
|
34498
|
+
'code-tabs': CodeTabs(opts),
|
|
34499
|
+
'html-block': HTMLBlock(opts),
|
|
34500
|
+
'rdme-callout': Callout,
|
|
34501
|
+
'readme-variable': Variable,
|
|
34502
|
+
'readme-glossary-item': GlossaryItem,
|
|
34503
|
+
'rdme-embed': Embed(opts),
|
|
34504
|
+
'rdme-pin': PinWrap,
|
|
34505
|
+
table: Table,
|
|
34506
|
+
a: Anchor,
|
|
34507
|
+
h1: Heading(1, opts),
|
|
34508
|
+
h2: Heading(2, opts),
|
|
34509
|
+
h3: Heading(3, opts),
|
|
34510
|
+
h4: Heading(4, opts),
|
|
34511
|
+
h5: Heading(5, opts),
|
|
34512
|
+
h6: Heading(6, opts),
|
|
34513
|
+
code: Code(opts),
|
|
34514
|
+
img: Image(opts),
|
|
34515
|
+
style: Style(opts)
|
|
34516
|
+
}, registerCustomComponents(components, sanitize, opts.customComponentPrefix))
|
|
34582
34517
|
});
|
|
34583
34518
|
}
|
|
34584
34519
|
function react(content) {
|
|
@@ -34586,29 +34521,14 @@ function react(content) {
|
|
|
34586
34521
|
var components = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
34587
34522
|
if (!content) return null;else if (typeof content === 'string') {
|
|
34588
34523
|
var _setup9 = setup(content, opts);
|
|
34589
|
-
var _setup10 =
|
|
34524
|
+
var _setup10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup9, 2);
|
|
34590
34525
|
content = _setup10[0];
|
|
34591
34526
|
opts = _setup10[1];
|
|
34592
34527
|
} else {
|
|
34593
34528
|
var _setup11 = setup('', opts);
|
|
34594
|
-
var _setup12 =
|
|
34529
|
+
var _setup12 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup11, 2);
|
|
34595
34530
|
opts = _setup12[1];
|
|
34596
34531
|
}
|
|
34597
|
-
|
|
34598
|
-
// mdx
|
|
34599
|
-
if (opts.mdx) {
|
|
34600
|
-
var remarkPlugins = [[remarkFrontmatter, ['yaml', 'toml']], !opts.correctnewlines ? remarkBreaks : function () {}].concat(toConsumableArray_default()(CustomParsers.map(function (parser) {
|
|
34601
|
-
var _parser$sanitize2;
|
|
34602
|
-
return ((_parser$sanitize2 = parser.sanitize) === null || _parser$sanitize2 === void 0 ? void 0 : _parser$sanitize2.call(parser, opts.sanitize)) || parser;
|
|
34603
|
-
})), transformers, [remarkSlug, [remarkDisableTokenizers, opts.disableTokenizers]]);
|
|
34604
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
34605
|
-
key: content
|
|
34606
|
-
}, /*#__PURE__*/React.createElement(Mdx, {
|
|
34607
|
-
components: reactComponents(opts, components),
|
|
34608
|
-
rehypePlugins: [sectionAnchorId],
|
|
34609
|
-
remarkPlugins: remarkPlugins
|
|
34610
|
-
}, content));
|
|
34611
|
-
}
|
|
34612
34532
|
var proc = reactProcessor(opts, components);
|
|
34613
34533
|
if (typeof content === 'string') content = proc.parse(content);
|
|
34614
34534
|
return proc.stringify(proc.runSync(content));
|
|
@@ -34617,7 +34537,7 @@ function reactTOC(tree) {
|
|
|
34617
34537
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34618
34538
|
if (!tree) return null;
|
|
34619
34539
|
var _setup13 = setup('', opts);
|
|
34620
|
-
var _setup14 =
|
|
34540
|
+
var _setup14 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup13, 2);
|
|
34621
34541
|
opts = _setup14[1];
|
|
34622
34542
|
var proc = htmlProcessor(opts).use(rehypeReact, {
|
|
34623
34543
|
createElement: React.createElement,
|
|
@@ -34651,7 +34571,7 @@ function html(text) {
|
|
|
34651
34571
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34652
34572
|
if (!text) return null;
|
|
34653
34573
|
var _setup15 = setup(text, opts);
|
|
34654
|
-
var _setup16 =
|
|
34574
|
+
var _setup16 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup15, 2);
|
|
34655
34575
|
text = _setup16[0];
|
|
34656
34576
|
opts = _setup16[1];
|
|
34657
34577
|
return htmlProcessor(opts).use(rehypeStringify).processSync(text).contents;
|
|
@@ -34664,7 +34584,7 @@ function hast(text) {
|
|
|
34664
34584
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34665
34585
|
if (!text) return null;
|
|
34666
34586
|
var _setup17 = setup(text, opts);
|
|
34667
|
-
var _setup18 =
|
|
34587
|
+
var _setup18 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup17, 2);
|
|
34668
34588
|
text = _setup18[0];
|
|
34669
34589
|
opts = _setup18[1];
|
|
34670
34590
|
var rdmd = htmlProcessor(opts).use(tableFlattening);
|
|
@@ -34679,7 +34599,7 @@ function mdast(text) {
|
|
|
34679
34599
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34680
34600
|
if (!text) return null;
|
|
34681
34601
|
var _setup19 = setup(text, opts);
|
|
34682
|
-
var _setup20 =
|
|
34602
|
+
var _setup20 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup19, 2);
|
|
34683
34603
|
text = _setup20[0];
|
|
34684
34604
|
opts = _setup20[1];
|
|
34685
34605
|
var rdmd = processor(opts);
|
|
@@ -34693,7 +34613,7 @@ function astToPlainText(node) {
|
|
|
34693
34613
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34694
34614
|
if (!node) return '';
|
|
34695
34615
|
var _setup21 = setup('', opts);
|
|
34696
|
-
var _setup22 =
|
|
34616
|
+
var _setup22 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup21, 2);
|
|
34697
34617
|
opts = _setup22[1];
|
|
34698
34618
|
return processor(opts).use(toPlainText).stringify(node);
|
|
34699
34619
|
}
|
|
@@ -34705,7 +34625,7 @@ function md(tree) {
|
|
|
34705
34625
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34706
34626
|
if (!tree) return null;
|
|
34707
34627
|
var _setup23 = setup('', opts);
|
|
34708
|
-
var _setup24 =
|
|
34628
|
+
var _setup24 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup23, 2);
|
|
34709
34629
|
opts = _setup24[1];
|
|
34710
34630
|
return processor(opts).use(remarkStringify, opts.markdownOptions).use(customCompilers).stringify(tree);
|
|
34711
34631
|
}
|
|
@@ -34713,9 +34633,10 @@ var ReadMeMarkdown = function ReadMeMarkdown(text) {
|
|
|
34713
34633
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34714
34634
|
return react(text, opts);
|
|
34715
34635
|
};
|
|
34716
|
-
/* harmony default export */ const
|
|
34636
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReadMeMarkdown);
|
|
34717
34637
|
})();
|
|
34718
34638
|
|
|
34719
|
-
|
|
34639
|
+
/******/ return __webpack_exports__;
|
|
34720
34640
|
/******/ })()
|
|
34721
|
-
;
|
|
34641
|
+
;
|
|
34642
|
+
});
|