@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.node.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
 
@@ -10701,6 +10728,7 @@ var options = {
10701
10728
  setext: true
10702
10729
  },
10703
10730
  normalize: true,
10731
+ safeMode: false,
10704
10732
  settings: {
10705
10733
  position: false
10706
10734
  },
@@ -11649,18 +11677,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11649
11677
  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; }
11650
11678
 
11651
11679
  /* eslint-disable consistent-return */
11652
- var unified = __webpack_require__(8835);
11653
-
11654
- var rehypeParse = __webpack_require__(3322);
11655
-
11656
- var rehypeSanitize = __webpack_require__(1667);
11657
-
11658
- var rehypeStringify = __webpack_require__(7532);
11659
-
11660
- var globalSanitizeSchema = __webpack_require__(8229);
11661
-
11662
11680
  var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
11663
11681
  var compatibilityMode;
11682
+ var safeMode;
11664
11683
 
11665
11684
  var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
11666
11685
  if (!json.sidebar) return node;
@@ -11689,13 +11708,6 @@ var imgSizeByWidth = new Proxy(new Map(Array.from(imgSizeValues).reverse()), {
11689
11708
  return match ? match[1] : width in sizes ? sizes[width] : width;
11690
11709
  }
11691
11710
  });
11692
- var processor = unified().use(rehypeParse, {
11693
- fragment: true
11694
- }).use(rehypeSanitize, globalSanitizeSchema).use(rehypeStringify);
11695
-
11696
- var sanitize = function sanitize(html) {
11697
- return processor.processSync(html).toString();
11698
- };
11699
11711
 
11700
11712
  function tokenize(eat, value) {
11701
11713
  var _this = this;
@@ -11943,8 +11955,9 @@ function tokenize(eat, value) {
11943
11955
  data: {
11944
11956
  hName: 'html-block',
11945
11957
  hProperties: {
11946
- html: sanitize(json.html),
11947
- runScripts: compatibilityMode
11958
+ html: json.html,
11959
+ runScripts: compatibilityMode,
11960
+ safeMode: safeMode
11948
11961
  }
11949
11962
  }
11950
11963
  }, json));
@@ -11969,6 +11982,7 @@ function parser() {
11969
11982
  var tokenizers = Parser.prototype.blockTokenizers;
11970
11983
  var methods = Parser.prototype.blockMethods;
11971
11984
  if (this.data('compatibilityMode')) compatibilityMode = true;
11985
+ if (this.data('safeMode')) safeMode = true;
11972
11986
  tokenizers.magicBlocks = tokenize;
11973
11987
  methods.splice(methods.indexOf('newline'), 0, 'magicBlocks');
11974
11988
  }
@@ -14156,136 +14170,56 @@ function ok() {
14156
14170
  }
14157
14171
 
14158
14172
 
14159
- /***/ }),
14160
-
14161
- /***/ 3216:
14162
- /***/ ((module) => {
14163
-
14164
- "use strict";
14165
-
14166
-
14167
- module.exports = convert
14168
-
14169
- function convert(test) {
14170
- if (typeof test === 'string') {
14171
- return tagNameFactory(test)
14172
- }
14173
-
14174
- if (test === null || test === undefined) {
14175
- return element
14176
- }
14177
-
14178
- if (typeof test === 'object') {
14179
- return any(test)
14180
- }
14181
-
14182
- if (typeof test === 'function') {
14183
- return callFactory(test)
14184
- }
14185
-
14186
- throw new Error('Expected function, string, or array as test')
14187
- }
14188
-
14189
- function convertAll(tests) {
14190
- var length = tests.length
14191
- var index = -1
14192
- var results = []
14193
-
14194
- while (++index < length) {
14195
- results[index] = convert(tests[index])
14196
- }
14197
-
14198
- return results
14199
- }
14200
-
14201
- function any(tests) {
14202
- var checks = convertAll(tests)
14203
- var length = checks.length
14204
-
14205
- return matches
14206
-
14207
- function matches() {
14208
- var index = -1
14209
-
14210
- while (++index < length) {
14211
- if (checks[index].apply(this, arguments)) {
14212
- return true
14213
- }
14214
- }
14215
-
14216
- return false
14217
- }
14218
- }
14219
-
14220
- // Utility to convert a string a tag name check.
14221
- function tagNameFactory(test) {
14222
- return tagName
14223
-
14224
- function tagName(node) {
14225
- return element(node) && node.tagName === test
14226
- }
14227
- }
14228
-
14229
- // Utility to convert a function check.
14230
- function callFactory(test) {
14231
- return call
14232
-
14233
- function call(node) {
14234
- return element(node) && Boolean(test.apply(this, arguments))
14235
- }
14236
- }
14237
-
14238
- // Utility to return true if this is an element.
14239
- function element(node) {
14240
- return (
14241
- node &&
14242
- typeof node === 'object' &&
14243
- node.type === 'element' &&
14244
- typeof node.tagName === 'string'
14245
- )
14246
- }
14247
-
14248
-
14249
14173
  /***/ }),
14250
14174
 
14251
14175
  /***/ 8909:
14252
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
14176
+ /***/ ((module) => {
14253
14177
 
14254
14178
  "use strict";
14255
14179
 
14256
14180
 
14257
- var convert = __webpack_require__(3216)
14258
-
14259
14181
  module.exports = isElement
14260
14182
 
14261
- isElement.convert = convert
14262
-
14263
- // Check if if `node` is an `element` and whether it passes the given test.
14264
- function isElement(node, test, index, parent, context) {
14265
- var hasParent = parent !== null && parent !== undefined
14266
- var hasIndex = index !== null && index !== undefined
14267
- var check = convert(test)
14183
+ // Check if if `node` is an `element` and, if `tagNames` is given, `node`
14184
+ // matches them `tagNames`.
14185
+ function isElement(node, tagNames) {
14186
+ var name
14268
14187
 
14269
14188
  if (
14270
- hasIndex &&
14271
- (typeof index !== 'number' || index < 0 || index === Infinity)
14189
+ !(
14190
+ tagNames === null ||
14191
+ tagNames === undefined ||
14192
+ typeof tagNames === 'string' ||
14193
+ (typeof tagNames === 'object' && tagNames.length !== 0)
14194
+ )
14272
14195
  ) {
14273
- throw new Error('Expected positive finite index for child node')
14196
+ throw new Error(
14197
+ 'Expected `string` or `Array.<string>` for `tagNames`, not `' +
14198
+ tagNames +
14199
+ '`'
14200
+ )
14274
14201
  }
14275
14202
 
14276
- if (hasParent && (!parent.type || !parent.children)) {
14277
- throw new Error('Expected parent node')
14203
+ if (
14204
+ !node ||
14205
+ typeof node !== 'object' ||
14206
+ node.type !== 'element' ||
14207
+ typeof node.tagName !== 'string'
14208
+ ) {
14209
+ return false
14278
14210
  }
14279
14211
 
14280
- if (!node || !node.type || typeof node.type !== 'string') {
14281
- return false
14212
+ if (tagNames === null || tagNames === undefined) {
14213
+ return true
14282
14214
  }
14283
14215
 
14284
- if (hasParent !== hasIndex) {
14285
- throw new Error('Expected both parent and index')
14216
+ name = node.tagName
14217
+
14218
+ if (typeof tagNames === 'string') {
14219
+ return name === tagNames
14286
14220
  }
14287
14221
 
14288
- return check.call(context, node, index, parent)
14222
+ return tagNames.indexOf(name) !== -1
14289
14223
  }
14290
14224
 
14291
14225
 
@@ -16534,6 +16468,227 @@ function wordCharacter(character) {
16534
16468
  }
16535
16469
 
16536
16470
 
16471
+ /***/ }),
16472
+
16473
+ /***/ 8686:
16474
+ /***/ ((module) => {
16475
+
16476
+ /**
16477
+ * lodash (Custom Build) <https://lodash.com/>
16478
+ * Build: `lodash modularize exports="npm" -o ./`
16479
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
16480
+ * Released under MIT license <https://lodash.com/license>
16481
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
16482
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16483
+ */
16484
+
16485
+ /** Used as references for various `Number` constants. */
16486
+ var INFINITY = 1 / 0;
16487
+
16488
+ /** `Object#toString` result references. */
16489
+ var symbolTag = '[object Symbol]';
16490
+
16491
+ /** Used to match HTML entities and HTML characters. */
16492
+ var reUnescapedHtml = /[&<>"'`]/g,
16493
+ reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
16494
+
16495
+ /** Used to map characters to HTML entities. */
16496
+ var htmlEscapes = {
16497
+ '&': '&amp;',
16498
+ '<': '&lt;',
16499
+ '>': '&gt;',
16500
+ '"': '&quot;',
16501
+ "'": '&#39;',
16502
+ '`': '&#96;'
16503
+ };
16504
+
16505
+ /** Detect free variable `global` from Node.js. */
16506
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
16507
+
16508
+ /** Detect free variable `self`. */
16509
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
16510
+
16511
+ /** Used as a reference to the global object. */
16512
+ var root = freeGlobal || freeSelf || Function('return this')();
16513
+
16514
+ /**
16515
+ * The base implementation of `_.propertyOf` without support for deep paths.
16516
+ *
16517
+ * @private
16518
+ * @param {Object} object The object to query.
16519
+ * @returns {Function} Returns the new accessor function.
16520
+ */
16521
+ function basePropertyOf(object) {
16522
+ return function(key) {
16523
+ return object == null ? undefined : object[key];
16524
+ };
16525
+ }
16526
+
16527
+ /**
16528
+ * Used by `_.escape` to convert characters to HTML entities.
16529
+ *
16530
+ * @private
16531
+ * @param {string} chr The matched character to escape.
16532
+ * @returns {string} Returns the escaped character.
16533
+ */
16534
+ var escapeHtmlChar = basePropertyOf(htmlEscapes);
16535
+
16536
+ /** Used for built-in method references. */
16537
+ var objectProto = Object.prototype;
16538
+
16539
+ /**
16540
+ * Used to resolve the
16541
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
16542
+ * of values.
16543
+ */
16544
+ var objectToString = objectProto.toString;
16545
+
16546
+ /** Built-in value references. */
16547
+ var Symbol = root.Symbol;
16548
+
16549
+ /** Used to convert symbols to primitives and strings. */
16550
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
16551
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
16552
+
16553
+ /**
16554
+ * The base implementation of `_.toString` which doesn't convert nullish
16555
+ * values to empty strings.
16556
+ *
16557
+ * @private
16558
+ * @param {*} value The value to process.
16559
+ * @returns {string} Returns the string.
16560
+ */
16561
+ function baseToString(value) {
16562
+ // Exit early for strings to avoid a performance hit in some environments.
16563
+ if (typeof value == 'string') {
16564
+ return value;
16565
+ }
16566
+ if (isSymbol(value)) {
16567
+ return symbolToString ? symbolToString.call(value) : '';
16568
+ }
16569
+ var result = (value + '');
16570
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
16571
+ }
16572
+
16573
+ /**
16574
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
16575
+ * and has a `typeof` result of "object".
16576
+ *
16577
+ * @static
16578
+ * @memberOf _
16579
+ * @since 4.0.0
16580
+ * @category Lang
16581
+ * @param {*} value The value to check.
16582
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
16583
+ * @example
16584
+ *
16585
+ * _.isObjectLike({});
16586
+ * // => true
16587
+ *
16588
+ * _.isObjectLike([1, 2, 3]);
16589
+ * // => true
16590
+ *
16591
+ * _.isObjectLike(_.noop);
16592
+ * // => false
16593
+ *
16594
+ * _.isObjectLike(null);
16595
+ * // => false
16596
+ */
16597
+ function isObjectLike(value) {
16598
+ return !!value && typeof value == 'object';
16599
+ }
16600
+
16601
+ /**
16602
+ * Checks if `value` is classified as a `Symbol` primitive or object.
16603
+ *
16604
+ * @static
16605
+ * @memberOf _
16606
+ * @since 4.0.0
16607
+ * @category Lang
16608
+ * @param {*} value The value to check.
16609
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
16610
+ * @example
16611
+ *
16612
+ * _.isSymbol(Symbol.iterator);
16613
+ * // => true
16614
+ *
16615
+ * _.isSymbol('abc');
16616
+ * // => false
16617
+ */
16618
+ function isSymbol(value) {
16619
+ return typeof value == 'symbol' ||
16620
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
16621
+ }
16622
+
16623
+ /**
16624
+ * Converts `value` to a string. An empty string is returned for `null`
16625
+ * and `undefined` values. The sign of `-0` is preserved.
16626
+ *
16627
+ * @static
16628
+ * @memberOf _
16629
+ * @since 4.0.0
16630
+ * @category Lang
16631
+ * @param {*} value The value to process.
16632
+ * @returns {string} Returns the string.
16633
+ * @example
16634
+ *
16635
+ * _.toString(null);
16636
+ * // => ''
16637
+ *
16638
+ * _.toString(-0);
16639
+ * // => '-0'
16640
+ *
16641
+ * _.toString([1, 2, 3]);
16642
+ * // => '1,2,3'
16643
+ */
16644
+ function toString(value) {
16645
+ return value == null ? '' : baseToString(value);
16646
+ }
16647
+
16648
+ /**
16649
+ * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
16650
+ * their corresponding HTML entities.
16651
+ *
16652
+ * **Note:** No other characters are escaped. To escape additional
16653
+ * characters use a third-party library like [_he_](https://mths.be/he).
16654
+ *
16655
+ * Though the ">" character is escaped for symmetry, characters like
16656
+ * ">" and "/" don't need escaping in HTML and have no special meaning
16657
+ * unless they're part of a tag or unquoted attribute value. See
16658
+ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
16659
+ * (under "semi-related fun fact") for more details.
16660
+ *
16661
+ * Backticks are escaped because in IE < 9, they can break out of
16662
+ * attribute values or HTML comments. See [#59](https://html5sec.org/#59),
16663
+ * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
16664
+ * [#133](https://html5sec.org/#133) of the
16665
+ * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
16666
+ *
16667
+ * When working with HTML you should always
16668
+ * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
16669
+ * XSS vectors.
16670
+ *
16671
+ * @static
16672
+ * @since 0.1.0
16673
+ * @memberOf _
16674
+ * @category String
16675
+ * @param {string} [string=''] The string to escape.
16676
+ * @returns {string} Returns the escaped string.
16677
+ * @example
16678
+ *
16679
+ * _.escape('fred, barney, & pebbles');
16680
+ * // => 'fred, barney, &amp; pebbles'
16681
+ */
16682
+ function escape(string) {
16683
+ string = toString(string);
16684
+ return (string && reHasUnescapedHtml.test(string))
16685
+ ? string.replace(reUnescapedHtml, escapeHtmlChar)
16686
+ : string;
16687
+ }
16688
+
16689
+ module.exports = escape;
16690
+
16691
+
16537
16692
  /***/ }),
16538
16693
 
16539
16694
  /***/ 5683:
@@ -21185,104 +21340,6 @@ var svg = __webpack_require__(5789)
21185
21340
  module.exports = merge([xml, xlink, xmlns, aria, svg])
21186
21341
 
21187
21342
 
21188
- /***/ }),
21189
-
21190
- /***/ 3322:
21191
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
21192
-
21193
- "use strict";
21194
-
21195
-
21196
- var fromParse5 = __webpack_require__(7721)
21197
- var Parser5 = __webpack_require__(6425)
21198
- var errors = __webpack_require__(2471)
21199
-
21200
- var base = 'https://html.spec.whatwg.org/multipage/parsing.html#parse-error-'
21201
-
21202
- var fatalities = {2: true, 1: false, 0: null}
21203
-
21204
- module.exports = parse
21205
-
21206
- function parse(options) {
21207
- var settings = Object.assign({}, options, this.data('settings'))
21208
- var position = settings.position
21209
-
21210
- position = typeof position === 'boolean' ? position : true
21211
-
21212
- this.Parser = parser
21213
-
21214
- function parser(doc, file) {
21215
- var fn = settings.fragment ? 'parseFragment' : 'parse'
21216
- var onParseError = settings.emitParseErrors ? onerror : null
21217
- var parse5 = new Parser5({
21218
- sourceCodeLocationInfo: position,
21219
- onParseError: onParseError,
21220
- scriptingEnabled: false
21221
- })
21222
-
21223
- return fromParse5(parse5[fn](doc), {
21224
- space: settings.space,
21225
- file: file,
21226
- verbose: settings.verbose
21227
- })
21228
-
21229
- function onerror(err) {
21230
- var code = err.code
21231
- var name = camelcase(code)
21232
- var setting = settings[name]
21233
- var config = setting === undefined || setting === null ? true : setting
21234
- var level = typeof config === 'number' ? config : config ? 1 : 0
21235
- var start = {
21236
- line: err.startLine,
21237
- column: err.startCol,
21238
- offset: err.startOffset
21239
- }
21240
- var end = {line: err.endLine, column: err.endCol, offset: err.endOffset}
21241
- var info
21242
- var message
21243
-
21244
- if (level) {
21245
- info = errors[name] || /* istanbul ignore next */ {
21246
- reason: '',
21247
- description: ''
21248
- }
21249
-
21250
- message = file.message(format(info.reason), {start: start, end: end})
21251
- message.source = 'parse-error'
21252
- message.ruleId = code
21253
- message.fatal = fatalities[level]
21254
- message.note = format(info.description)
21255
- message.url = info.url === false ? null : base + code
21256
- }
21257
-
21258
- function format(value) {
21259
- return value.replace(/%c(?:-(\d+))?/g, char).replace(/%x/g, encodedChar)
21260
- }
21261
-
21262
- function char($0, $1) {
21263
- var offset = $1 ? -parseInt($1, 10) : 0
21264
- var char = doc.charAt(err.startOffset + offset)
21265
- return char === '`' ? '` ` `' : char
21266
- }
21267
-
21268
- function encodedChar() {
21269
- var char = doc.charCodeAt(err.startOffset).toString(16).toUpperCase()
21270
-
21271
- return '0x' + char
21272
- }
21273
- }
21274
- }
21275
- }
21276
-
21277
- function camelcase(value) {
21278
- return value.replace(/-[a-z]/g, replacer)
21279
- }
21280
-
21281
- function replacer($0) {
21282
- return $0.charAt(1).toUpperCase()
21283
- }
21284
-
21285
-
21286
21343
  /***/ }),
21287
21344
 
21288
21345
  /***/ 6388:
@@ -34223,14 +34280,6 @@ module.exports = JSON.parse('{"classId":"classID","dataType":"datatype","itemId"
34223
34280
 
34224
34281
  /***/ }),
34225
34282
 
34226
- /***/ 2471:
34227
- /***/ ((module) => {
34228
-
34229
- "use strict";
34230
- 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"}}');
34231
-
34232
- /***/ }),
34233
-
34234
34283
  /***/ 9052:
34235
34284
  /***/ ((module) => {
34236
34285
 
@@ -34550,7 +34599,7 @@ function reactProcessor() {
34550
34599
  Fragment: React.Fragment,
34551
34600
  components: _objectSpread({
34552
34601
  'code-tabs': CodeTabs(sanitize, opts),
34553
- 'html-block': HTMLBlock(sanitize),
34602
+ 'html-block': HTMLBlock(sanitize, opts),
34554
34603
  'rdme-callout': Callout(sanitize),
34555
34604
  'readme-variable': Variable,
34556
34605
  'readme-glossary-item': GlossaryItem,