@readme/markdown 6.42.0 → 6.43.2

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/dist/main.js CHANGED
@@ -9686,9 +9686,11 @@ module.exports.GlossaryContext = GlossaryContext;
9686
9686
 
9687
9687
  /***/ }),
9688
9688
 
9689
- /***/ 8039:
9689
+ /***/ 822:
9690
9690
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9691
9691
 
9692
+ var _extends = __webpack_require__(7154);
9693
+
9692
9694
  var _slicedToArray = __webpack_require__(3038);
9693
9695
 
9694
9696
  var _classCallCheck = __webpack_require__(4575);
@@ -9711,7 +9713,9 @@ var React = __webpack_require__(4466);
9711
9713
 
9712
9714
  var PropTypes = __webpack_require__(5697);
9713
9715
 
9714
- var MATCH_SCRIPT_TAGS = /<script\b[^>]*>([\s\S]*?)<\/script>\n?/gim;
9716
+ var escape = __webpack_require__(8686);
9717
+
9718
+ var MATCH_SCRIPT_TAGS = /<script\b[^>]*>([\s\S]*?)<\/script *>\n?/gim;
9715
9719
 
9716
9720
  var extractScripts = function extractScripts() {
9717
9721
  var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -9762,6 +9766,16 @@ var HTMLBlock = /*#__PURE__*/function (_React$Component) {
9762
9766
  }, {
9763
9767
  key: "render",
9764
9768
  value: function render() {
9769
+ var _this$props = this.props,
9770
+ html = _this$props.html,
9771
+ safeMode = _this$props.safeMode;
9772
+
9773
+ if (safeMode) {
9774
+ return /*#__PURE__*/React.createElement("pre", {
9775
+ className: "html-unsafe"
9776
+ }, /*#__PURE__*/React.createElement("code", null, escape(html)));
9777
+ }
9778
+
9765
9779
  return /*#__PURE__*/React.createElement("div", {
9766
9780
  className: "rdmd-html",
9767
9781
  dangerouslySetInnerHTML: {
@@ -9775,17 +9789,30 @@ var HTMLBlock = /*#__PURE__*/function (_React$Component) {
9775
9789
  }(React.Component);
9776
9790
 
9777
9791
  HTMLBlock.defaultProps = {
9778
- runScripts: false
9792
+ runScripts: false,
9793
+ safeMode: false
9779
9794
  };
9780
9795
  HTMLBlock.propTypes = {
9781
9796
  html: PropTypes.string,
9782
- runScripts: PropTypes.any
9797
+ runScripts: PropTypes.any,
9798
+ safeMode: PropTypes.bool
9783
9799
  };
9784
9800
 
9785
- module.exports = function (sanitize) {
9801
+ var CreateHtmlBlock = function CreateHtmlBlock(_ref) {
9802
+ var safeMode = _ref.safeMode;
9803
+ return (// eslint-disable-next-line react/display-name
9804
+ function (props) {
9805
+ return /*#__PURE__*/React.createElement(HTMLBlock, _extends({}, props, {
9806
+ safeMode: safeMode
9807
+ }));
9808
+ }
9809
+ );
9810
+ };
9811
+
9812
+ module.exports = function (sanitize, opts) {
9786
9813
  sanitize.tagNames.push('html-block');
9787
9814
  sanitize.attributes['html-block'] = ['html', 'runScripts'];
9788
- return HTMLBlock;
9815
+ return CreateHtmlBlock(opts);
9789
9816
  };
9790
9817
 
9791
9818
  /***/ }),
@@ -10155,38 +10182,38 @@ module.exports = TableOfContents;
10155
10182
  "use strict";
10156
10183
  __webpack_require__.r(__webpack_exports__);
10157
10184
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10158
- /* harmony export */ "Anchor": () => (/* reexport default from dynamic */ _Anchor__WEBPACK_IMPORTED_MODULE_3___default.a),
10159
- /* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_5___default.a),
10160
- /* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_1___default.a),
10161
- /* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_6___default.a),
10162
- /* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_8___default.a),
10163
- /* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default.a),
10164
- /* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_9___default.a),
10165
- /* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_4___default.a),
10166
- /* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_7___default.a),
10167
- /* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_2___default.a),
10185
+ /* harmony export */ "Anchor": () => (/* reexport default from dynamic */ _Anchor__WEBPACK_IMPORTED_MODULE_0___default.a),
10186
+ /* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_1___default.a),
10187
+ /* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_2___default.a),
10188
+ /* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default.a),
10189
+ /* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_4___default.a),
10190
+ /* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default.a),
10191
+ /* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default.a),
10192
+ /* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_7___default.a),
10193
+ /* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_8___default.a),
10194
+ /* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_9___default.a),
10168
10195
  /* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_10___default.a)
10169
10196
  /* harmony export */ });
10170
- /* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6566);
10171
- /* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_GlossaryItem__WEBPACK_IMPORTED_MODULE_0__);
10172
- /* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8297);
10173
- /* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Code__WEBPACK_IMPORTED_MODULE_1__);
10174
- /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(484);
10175
- /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Table__WEBPACK_IMPORTED_MODULE_2__);
10176
- /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8447);
10177
- /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Anchor__WEBPACK_IMPORTED_MODULE_3__);
10178
- /* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1984);
10179
- /* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Heading__WEBPACK_IMPORTED_MODULE_4__);
10180
- /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2015);
10181
- /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Callout__WEBPACK_IMPORTED_MODULE_5__);
10182
- /* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6553);
10183
- /* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_CodeTabs__WEBPACK_IMPORTED_MODULE_6__);
10184
- /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9167);
10185
- /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Image__WEBPACK_IMPORTED_MODULE_7__);
10186
- /* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1053);
10187
- /* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Embed__WEBPACK_IMPORTED_MODULE_8__);
10188
- /* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8039);
10189
- /* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_HTMLBlock__WEBPACK_IMPORTED_MODULE_9__);
10197
+ /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8447);
10198
+ /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Anchor__WEBPACK_IMPORTED_MODULE_0__);
10199
+ /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2015);
10200
+ /* harmony import */ var _Callout__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Callout__WEBPACK_IMPORTED_MODULE_1__);
10201
+ /* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8297);
10202
+ /* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Code__WEBPACK_IMPORTED_MODULE_2__);
10203
+ /* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6553);
10204
+ /* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_CodeTabs__WEBPACK_IMPORTED_MODULE_3__);
10205
+ /* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1053);
10206
+ /* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Embed__WEBPACK_IMPORTED_MODULE_4__);
10207
+ /* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6566);
10208
+ /* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_GlossaryItem__WEBPACK_IMPORTED_MODULE_5__);
10209
+ /* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(822);
10210
+ /* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_HTMLBlock__WEBPACK_IMPORTED_MODULE_6__);
10211
+ /* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1984);
10212
+ /* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Heading__WEBPACK_IMPORTED_MODULE_7__);
10213
+ /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9167);
10214
+ /* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Image__WEBPACK_IMPORTED_MODULE_8__);
10215
+ /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(484);
10216
+ /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Table__WEBPACK_IMPORTED_MODULE_9__);
10190
10217
  /* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4479);
10191
10218
  /* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_TableOfContents__WEBPACK_IMPORTED_MODULE_10__);
10192
10219
 
@@ -27879,6 +27906,7 @@ var options = {
27879
27906
  setext: true
27880
27907
  },
27881
27908
  normalize: true,
27909
+ safeMode: false,
27882
27910
  settings: {
27883
27911
  position: false
27884
27912
  },
@@ -28827,18 +28855,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
28827
28855
  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; }
28828
28856
 
28829
28857
  /* eslint-disable consistent-return */
28830
- var unified = __webpack_require__(8835);
28831
-
28832
- var rehypeParse = __webpack_require__(3322);
28833
-
28834
- var rehypeSanitize = __webpack_require__(1667);
28835
-
28836
- var rehypeStringify = __webpack_require__(7532);
28837
-
28838
- var globalSanitizeSchema = __webpack_require__(8229);
28839
-
28840
28858
  var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
28841
28859
  var compatibilityMode;
28860
+ var safeMode;
28842
28861
 
28843
28862
  var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
28844
28863
  if (!json.sidebar) return node;
@@ -28867,13 +28886,6 @@ var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
28867
28886
  return match ? match[1] : width in sizes ? sizes[width] : width;
28868
28887
  }
28869
28888
  });
28870
- var processor = unified().use(rehypeParse, {
28871
- fragment: true
28872
- }).use(rehypeSanitize, globalSanitizeSchema).use(rehypeStringify);
28873
-
28874
- var sanitize = function sanitize(html) {
28875
- return processor.processSync(html).toString();
28876
- };
28877
28889
 
28878
28890
  function tokenize(eat, value) {
28879
28891
  var _this = this;
@@ -29121,8 +29133,9 @@ function tokenize(eat, value) {
29121
29133
  data: {
29122
29134
  hName: 'html-block',
29123
29135
  hProperties: {
29124
- html: sanitize(json.html),
29125
- runScripts: compatibilityMode
29136
+ html: json.html,
29137
+ runScripts: compatibilityMode,
29138
+ safeMode: safeMode
29126
29139
  }
29127
29140
  }
29128
29141
  }, json));
@@ -29147,6 +29160,7 @@ function parser() {
29147
29160
  var tokenizers = Parser.prototype.blockTokenizers;
29148
29161
  var methods = Parser.prototype.blockMethods;
29149
29162
  if (this.data('compatibilityMode')) compatibilityMode = true;
29163
+ if (this.data('safeMode')) safeMode = true;
29150
29164
  tokenizers.magicBlocks = tokenize;
29151
29165
  methods.splice(methods.indexOf('newline'), 0, 'magicBlocks');
29152
29166
  }
@@ -31334,136 +31348,56 @@ function ok() {
31334
31348
  }
31335
31349
 
31336
31350
 
31337
- /***/ }),
31338
-
31339
- /***/ 3216:
31340
- /***/ ((module) => {
31341
-
31342
- "use strict";
31343
-
31344
-
31345
- module.exports = convert
31346
-
31347
- function convert(test) {
31348
- if (typeof test === 'string') {
31349
- return tagNameFactory(test)
31350
- }
31351
-
31352
- if (test === null || test === undefined) {
31353
- return element
31354
- }
31355
-
31356
- if (typeof test === 'object') {
31357
- return any(test)
31358
- }
31359
-
31360
- if (typeof test === 'function') {
31361
- return callFactory(test)
31362
- }
31363
-
31364
- throw new Error('Expected function, string, or array as test')
31365
- }
31366
-
31367
- function convertAll(tests) {
31368
- var length = tests.length
31369
- var index = -1
31370
- var results = []
31371
-
31372
- while (++index < length) {
31373
- results[index] = convert(tests[index])
31374
- }
31375
-
31376
- return results
31377
- }
31378
-
31379
- function any(tests) {
31380
- var checks = convertAll(tests)
31381
- var length = checks.length
31382
-
31383
- return matches
31384
-
31385
- function matches() {
31386
- var index = -1
31387
-
31388
- while (++index < length) {
31389
- if (checks[index].apply(this, arguments)) {
31390
- return true
31391
- }
31392
- }
31393
-
31394
- return false
31395
- }
31396
- }
31397
-
31398
- // Utility to convert a string a tag name check.
31399
- function tagNameFactory(test) {
31400
- return tagName
31401
-
31402
- function tagName(node) {
31403
- return element(node) && node.tagName === test
31404
- }
31405
- }
31406
-
31407
- // Utility to convert a function check.
31408
- function callFactory(test) {
31409
- return call
31410
-
31411
- function call(node) {
31412
- return element(node) && Boolean(test.apply(this, arguments))
31413
- }
31414
- }
31415
-
31416
- // Utility to return true if this is an element.
31417
- function element(node) {
31418
- return (
31419
- node &&
31420
- typeof node === 'object' &&
31421
- node.type === 'element' &&
31422
- typeof node.tagName === 'string'
31423
- )
31424
- }
31425
-
31426
-
31427
31351
  /***/ }),
31428
31352
 
31429
31353
  /***/ 8909:
31430
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
31354
+ /***/ ((module) => {
31431
31355
 
31432
31356
  "use strict";
31433
31357
 
31434
31358
 
31435
- var convert = __webpack_require__(3216)
31436
-
31437
31359
  module.exports = isElement
31438
31360
 
31439
- isElement.convert = convert
31440
-
31441
- // Check if if `node` is an `element` and whether it passes the given test.
31442
- function isElement(node, test, index, parent, context) {
31443
- var hasParent = parent !== null && parent !== undefined
31444
- var hasIndex = index !== null && index !== undefined
31445
- var check = convert(test)
31361
+ // Check if if `node` is an `element` and, if `tagNames` is given, `node`
31362
+ // matches them `tagNames`.
31363
+ function isElement(node, tagNames) {
31364
+ var name
31446
31365
 
31447
31366
  if (
31448
- hasIndex &&
31449
- (typeof index !== 'number' || index < 0 || index === Infinity)
31367
+ !(
31368
+ tagNames === null ||
31369
+ tagNames === undefined ||
31370
+ typeof tagNames === 'string' ||
31371
+ (typeof tagNames === 'object' && tagNames.length !== 0)
31372
+ )
31450
31373
  ) {
31451
- throw new Error('Expected positive finite index for child node')
31374
+ throw new Error(
31375
+ 'Expected `string` or `Array.<string>` for `tagNames`, not `' +
31376
+ tagNames +
31377
+ '`'
31378
+ )
31452
31379
  }
31453
31380
 
31454
- if (hasParent && (!parent.type || !parent.children)) {
31455
- throw new Error('Expected parent node')
31381
+ if (
31382
+ !node ||
31383
+ typeof node !== 'object' ||
31384
+ node.type !== 'element' ||
31385
+ typeof node.tagName !== 'string'
31386
+ ) {
31387
+ return false
31456
31388
  }
31457
31389
 
31458
- if (!node || !node.type || typeof node.type !== 'string') {
31459
- return false
31390
+ if (tagNames === null || tagNames === undefined) {
31391
+ return true
31460
31392
  }
31461
31393
 
31462
- if (hasParent !== hasIndex) {
31463
- throw new Error('Expected both parent and index')
31394
+ name = node.tagName
31395
+
31396
+ if (typeof tagNames === 'string') {
31397
+ return name === tagNames
31464
31398
  }
31465
31399
 
31466
- return check.call(context, node, index, parent)
31400
+ return tagNames.indexOf(name) !== -1
31467
31401
  }
31468
31402
 
31469
31403
 
@@ -33696,6 +33630,227 @@ function wordCharacter(character) {
33696
33630
  }
33697
33631
 
33698
33632
 
33633
+ /***/ }),
33634
+
33635
+ /***/ 8686:
33636
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
33637
+
33638
+ /**
33639
+ * lodash (Custom Build) <https://lodash.com/>
33640
+ * Build: `lodash modularize exports="npm" -o ./`
33641
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
33642
+ * Released under MIT license <https://lodash.com/license>
33643
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
33644
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
33645
+ */
33646
+
33647
+ /** Used as references for various `Number` constants. */
33648
+ var INFINITY = 1 / 0;
33649
+
33650
+ /** `Object#toString` result references. */
33651
+ var symbolTag = '[object Symbol]';
33652
+
33653
+ /** Used to match HTML entities and HTML characters. */
33654
+ var reUnescapedHtml = /[&<>"'`]/g,
33655
+ reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
33656
+
33657
+ /** Used to map characters to HTML entities. */
33658
+ var htmlEscapes = {
33659
+ '&': '&amp;',
33660
+ '<': '&lt;',
33661
+ '>': '&gt;',
33662
+ '"': '&quot;',
33663
+ "'": '&#39;',
33664
+ '`': '&#96;'
33665
+ };
33666
+
33667
+ /** Detect free variable `global` from Node.js. */
33668
+ var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
33669
+
33670
+ /** Detect free variable `self`. */
33671
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
33672
+
33673
+ /** Used as a reference to the global object. */
33674
+ var root = freeGlobal || freeSelf || Function('return this')();
33675
+
33676
+ /**
33677
+ * The base implementation of `_.propertyOf` without support for deep paths.
33678
+ *
33679
+ * @private
33680
+ * @param {Object} object The object to query.
33681
+ * @returns {Function} Returns the new accessor function.
33682
+ */
33683
+ function basePropertyOf(object) {
33684
+ return function(key) {
33685
+ return object == null ? undefined : object[key];
33686
+ };
33687
+ }
33688
+
33689
+ /**
33690
+ * Used by `_.escape` to convert characters to HTML entities.
33691
+ *
33692
+ * @private
33693
+ * @param {string} chr The matched character to escape.
33694
+ * @returns {string} Returns the escaped character.
33695
+ */
33696
+ var escapeHtmlChar = basePropertyOf(htmlEscapes);
33697
+
33698
+ /** Used for built-in method references. */
33699
+ var objectProto = Object.prototype;
33700
+
33701
+ /**
33702
+ * Used to resolve the
33703
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
33704
+ * of values.
33705
+ */
33706
+ var objectToString = objectProto.toString;
33707
+
33708
+ /** Built-in value references. */
33709
+ var Symbol = root.Symbol;
33710
+
33711
+ /** Used to convert symbols to primitives and strings. */
33712
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
33713
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
33714
+
33715
+ /**
33716
+ * The base implementation of `_.toString` which doesn't convert nullish
33717
+ * values to empty strings.
33718
+ *
33719
+ * @private
33720
+ * @param {*} value The value to process.
33721
+ * @returns {string} Returns the string.
33722
+ */
33723
+ function baseToString(value) {
33724
+ // Exit early for strings to avoid a performance hit in some environments.
33725
+ if (typeof value == 'string') {
33726
+ return value;
33727
+ }
33728
+ if (isSymbol(value)) {
33729
+ return symbolToString ? symbolToString.call(value) : '';
33730
+ }
33731
+ var result = (value + '');
33732
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
33733
+ }
33734
+
33735
+ /**
33736
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
33737
+ * and has a `typeof` result of "object".
33738
+ *
33739
+ * @static
33740
+ * @memberOf _
33741
+ * @since 4.0.0
33742
+ * @category Lang
33743
+ * @param {*} value The value to check.
33744
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
33745
+ * @example
33746
+ *
33747
+ * _.isObjectLike({});
33748
+ * // => true
33749
+ *
33750
+ * _.isObjectLike([1, 2, 3]);
33751
+ * // => true
33752
+ *
33753
+ * _.isObjectLike(_.noop);
33754
+ * // => false
33755
+ *
33756
+ * _.isObjectLike(null);
33757
+ * // => false
33758
+ */
33759
+ function isObjectLike(value) {
33760
+ return !!value && typeof value == 'object';
33761
+ }
33762
+
33763
+ /**
33764
+ * Checks if `value` is classified as a `Symbol` primitive or object.
33765
+ *
33766
+ * @static
33767
+ * @memberOf _
33768
+ * @since 4.0.0
33769
+ * @category Lang
33770
+ * @param {*} value The value to check.
33771
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
33772
+ * @example
33773
+ *
33774
+ * _.isSymbol(Symbol.iterator);
33775
+ * // => true
33776
+ *
33777
+ * _.isSymbol('abc');
33778
+ * // => false
33779
+ */
33780
+ function isSymbol(value) {
33781
+ return typeof value == 'symbol' ||
33782
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
33783
+ }
33784
+
33785
+ /**
33786
+ * Converts `value` to a string. An empty string is returned for `null`
33787
+ * and `undefined` values. The sign of `-0` is preserved.
33788
+ *
33789
+ * @static
33790
+ * @memberOf _
33791
+ * @since 4.0.0
33792
+ * @category Lang
33793
+ * @param {*} value The value to process.
33794
+ * @returns {string} Returns the string.
33795
+ * @example
33796
+ *
33797
+ * _.toString(null);
33798
+ * // => ''
33799
+ *
33800
+ * _.toString(-0);
33801
+ * // => '-0'
33802
+ *
33803
+ * _.toString([1, 2, 3]);
33804
+ * // => '1,2,3'
33805
+ */
33806
+ function toString(value) {
33807
+ return value == null ? '' : baseToString(value);
33808
+ }
33809
+
33810
+ /**
33811
+ * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
33812
+ * their corresponding HTML entities.
33813
+ *
33814
+ * **Note:** No other characters are escaped. To escape additional
33815
+ * characters use a third-party library like [_he_](https://mths.be/he).
33816
+ *
33817
+ * Though the ">" character is escaped for symmetry, characters like
33818
+ * ">" and "/" don't need escaping in HTML and have no special meaning
33819
+ * unless they're part of a tag or unquoted attribute value. See
33820
+ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
33821
+ * (under "semi-related fun fact") for more details.
33822
+ *
33823
+ * Backticks are escaped because in IE < 9, they can break out of
33824
+ * attribute values or HTML comments. See [#59](https://html5sec.org/#59),
33825
+ * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
33826
+ * [#133](https://html5sec.org/#133) of the
33827
+ * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
33828
+ *
33829
+ * When working with HTML you should always
33830
+ * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
33831
+ * XSS vectors.
33832
+ *
33833
+ * @static
33834
+ * @since 0.1.0
33835
+ * @memberOf _
33836
+ * @category String
33837
+ * @param {string} [string=''] The string to escape.
33838
+ * @returns {string} Returns the escaped string.
33839
+ * @example
33840
+ *
33841
+ * _.escape('fred, barney, & pebbles');
33842
+ * // => 'fred, barney, &amp; pebbles'
33843
+ */
33844
+ function escape(string) {
33845
+ string = toString(string);
33846
+ return (string && reHasUnescapedHtml.test(string))
33847
+ ? string.replace(reUnescapedHtml, escapeHtmlChar)
33848
+ : string;
33849
+ }
33850
+
33851
+ module.exports = escape;
33852
+
33853
+
33699
33854
  /***/ }),
33700
33855
 
33701
33856
  /***/ 5683:
@@ -38364,104 +38519,6 @@ var svg = __webpack_require__(5789)
38364
38519
  module.exports = merge([xml, xlink, xmlns, aria, svg])
38365
38520
 
38366
38521
 
38367
- /***/ }),
38368
-
38369
- /***/ 3322:
38370
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
38371
-
38372
- "use strict";
38373
-
38374
-
38375
- var fromParse5 = __webpack_require__(7721)
38376
- var Parser5 = __webpack_require__(6425)
38377
- var errors = __webpack_require__(2471)
38378
-
38379
- var base = 'https://html.spec.whatwg.org/multipage/parsing.html#parse-error-'
38380
-
38381
- var fatalities = {2: true, 1: false, 0: null}
38382
-
38383
- module.exports = parse
38384
-
38385
- function parse(options) {
38386
- var settings = Object.assign({}, options, this.data('settings'))
38387
- var position = settings.position
38388
-
38389
- position = typeof position === 'boolean' ? position : true
38390
-
38391
- this.Parser = parser
38392
-
38393
- function parser(doc, file) {
38394
- var fn = settings.fragment ? 'parseFragment' : 'parse'
38395
- var onParseError = settings.emitParseErrors ? onerror : null
38396
- var parse5 = new Parser5({
38397
- sourceCodeLocationInfo: position,
38398
- onParseError: onParseError,
38399
- scriptingEnabled: false
38400
- })
38401
-
38402
- return fromParse5(parse5[fn](doc), {
38403
- space: settings.space,
38404
- file: file,
38405
- verbose: settings.verbose
38406
- })
38407
-
38408
- function onerror(err) {
38409
- var code = err.code
38410
- var name = camelcase(code)
38411
- var setting = settings[name]
38412
- var config = setting === undefined || setting === null ? true : setting
38413
- var level = typeof config === 'number' ? config : config ? 1 : 0
38414
- var start = {
38415
- line: err.startLine,
38416
- column: err.startCol,
38417
- offset: err.startOffset
38418
- }
38419
- var end = {line: err.endLine, column: err.endCol, offset: err.endOffset}
38420
- var info
38421
- var message
38422
-
38423
- if (level) {
38424
- info = errors[name] || /* istanbul ignore next */ {
38425
- reason: '',
38426
- description: ''
38427
- }
38428
-
38429
- message = file.message(format(info.reason), {start: start, end: end})
38430
- message.source = 'parse-error'
38431
- message.ruleId = code
38432
- message.fatal = fatalities[level]
38433
- message.note = format(info.description)
38434
- message.url = info.url === false ? null : base + code
38435
- }
38436
-
38437
- function format(value) {
38438
- return value.replace(/%c(?:-(\d+))?/g, char).replace(/%x/g, encodedChar)
38439
- }
38440
-
38441
- function char($0, $1) {
38442
- var offset = $1 ? -parseInt($1, 10) : 0
38443
- var char = doc.charAt(err.startOffset + offset)
38444
- return char === '`' ? '` ` `' : char
38445
- }
38446
-
38447
- function encodedChar() {
38448
- var char = doc.charCodeAt(err.startOffset).toString(16).toUpperCase()
38449
-
38450
- return '0x' + char
38451
- }
38452
- }
38453
- }
38454
- }
38455
-
38456
- function camelcase(value) {
38457
- return value.replace(/-[a-z]/g, replacer)
38458
- }
38459
-
38460
- function replacer($0) {
38461
- return $0.charAt(1).toUpperCase()
38462
- }
38463
-
38464
-
38465
38522
  /***/ }),
38466
38523
 
38467
38524
  /***/ 6388:
@@ -51797,14 +51854,6 @@ module.exports = JSON.parse('{"classId":"classID","dataType":"datatype","itemId"
51797
51854
 
51798
51855
  /***/ }),
51799
51856
 
51800
- /***/ 2471:
51801
- /***/ ((module) => {
51802
-
51803
- "use strict";
51804
- module.exports = JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `-->` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `-->` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `-->` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `<!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `<!--`. Expected `-->`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}');
51805
-
51806
- /***/ }),
51807
-
51808
51857
  /***/ 9052:
51809
51858
  /***/ ((module) => {
51810
51859
 
@@ -52205,7 +52254,7 @@ function reactProcessor() {
52205
52254
  Fragment: React.Fragment,
52206
52255
  components: _objectSpread({
52207
52256
  'code-tabs': CodeTabs(sanitize, opts),
52208
- 'html-block': HTMLBlock(sanitize),
52257
+ 'html-block': HTMLBlock(sanitize, opts),
52209
52258
  'rdme-callout': Callout(sanitize),
52210
52259
  'readme-variable': Variable,
52211
52260
  'readme-glossary-item': GlossaryItem,