@readme/markdown 6.30.5 → 6.31.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/dist/main.node.js CHANGED
@@ -7,7 +7,7 @@
7
7
  var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("react")) : factory(root["@readme/variable"], root["React"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(global, function(__WEBPACK_EXTERNAL_MODULE__2215__, __WEBPACK_EXTERNAL_MODULE__7444__) {
10
+ })(global, function(__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__4466__) {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -9054,7 +9054,7 @@ var _objectWithoutProperties = __webpack_require__(6479);
9054
9054
 
9055
9055
  var _excluded = ["baseUrl", "children", "href", "target", "title"];
9056
9056
 
9057
- var React = __webpack_require__(7444);
9057
+ var React = __webpack_require__(4466);
9058
9058
 
9059
9059
  var PropTypes = __webpack_require__(5697);
9060
9060
 
@@ -9161,7 +9161,7 @@ var _extends = __webpack_require__(7154);
9161
9161
 
9162
9162
  var _toArray = __webpack_require__(8551);
9163
9163
 
9164
- var React = __webpack_require__(7444);
9164
+ var React = __webpack_require__(4466);
9165
9165
 
9166
9166
  var PropTypes = __webpack_require__(5697);
9167
9167
 
@@ -9227,14 +9227,14 @@ module.exports = function (sanitizeSchema) {
9227
9227
 
9228
9228
  var _extends = __webpack_require__(7154);
9229
9229
 
9230
- var React = __webpack_require__(7444);
9230
+ var React = __webpack_require__(4466);
9231
9231
 
9232
9232
  var PropTypes = __webpack_require__(5697); // Only load CodeMirror in the browser, for SSR
9233
9233
  // apps. Necessary because of people like this:
9234
9234
  // https://github.com/codemirror/CodeMirror/issues/3701#issuecomment-164904534
9235
9235
 
9236
9236
 
9237
- var syntaxHighlighter = typeof window !== 'undefined' ? __webpack_require__(6841).default : false;
9237
+ var syntaxHighlighter = typeof window !== 'undefined' ? __webpack_require__(6841)["default"] : false;
9238
9238
 
9239
9239
  var _require = __webpack_require__(6841),
9240
9240
  canonicalLanguage = _require.canonical;
@@ -9284,18 +9284,20 @@ function Code(props) {
9284
9284
  className = props.className,
9285
9285
  copyButtons = props.copyButtons,
9286
9286
  lang = props.lang,
9287
- meta = props.meta;
9287
+ meta = props.meta,
9288
+ theme = props.theme;
9288
9289
  var langClass = className.search(/lang(?:uage)?-\w+/) >= 0 ? className.match(/\s?lang(?:uage)?-(\w+)/)[1] : '';
9289
9290
  var language = canonicalLanguage(lang) || langClass;
9290
9291
  var codeRef = React.createRef();
9291
9292
  var codeOpts = {
9292
9293
  inline: !lang,
9293
- tokenizeVariables: true
9294
+ tokenizeVariables: true,
9295
+ dark: theme === 'dark'
9294
9296
  };
9295
9297
  var codeContent = syntaxHighlighter ? syntaxHighlighter(children[0], language, codeOpts) : children[0];
9296
9298
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("code", {
9297
9299
  ref: codeRef,
9298
- className: ['rdmd-code', "lang-".concat(language)].join(' '),
9300
+ className: ['rdmd-code', "lang-".concat(language), "theme-".concat(theme)].join(' '),
9299
9301
  "data-lang": language,
9300
9302
  name: meta,
9301
9303
  suppressHydrationWarning: true
@@ -9306,13 +9308,15 @@ function Code(props) {
9306
9308
  }
9307
9309
 
9308
9310
  function CreateCode(sanitizeSchema, _ref2) {
9309
- var copyButtons = _ref2.copyButtons;
9311
+ var copyButtons = _ref2.copyButtons,
9312
+ theme = _ref2.theme;
9310
9313
  // This is for code blocks class name
9311
9314
  sanitizeSchema.attributes.code = ['className', 'lang', 'meta', 'value']; // eslint-disable-next-line react/display-name
9312
9315
 
9313
9316
  return function (props) {
9314
9317
  return /*#__PURE__*/React.createElement(Code, _extends({}, props, {
9315
- copyButtons: copyButtons
9318
+ copyButtons: copyButtons,
9319
+ theme: theme
9316
9320
  }));
9317
9321
  };
9318
9322
  }
@@ -9322,7 +9326,8 @@ Code.propTypes = {
9322
9326
  className: PropTypes.string,
9323
9327
  copyButtons: PropTypes.bool,
9324
9328
  lang: PropTypes.string,
9325
- meta: PropTypes.string
9329
+ meta: PropTypes.string,
9330
+ theme: PropTypes.string
9326
9331
  };
9327
9332
  Code.defaultProps = {
9328
9333
  className: '',
@@ -9342,7 +9347,7 @@ module.exports = function (sanitizeSchema, opts) {
9342
9347
 
9343
9348
  var _extends = __webpack_require__(7154);
9344
9349
 
9345
- var React = __webpack_require__(7444);
9350
+ var React = __webpack_require__(4466);
9346
9351
 
9347
9352
  var PropTypes = __webpack_require__(5697);
9348
9353
 
@@ -9351,7 +9356,8 @@ var _require = __webpack_require__(6841),
9351
9356
 
9352
9357
  var CodeTabs = function CodeTabs(props) {
9353
9358
  var attributes = props.attributes,
9354
- children = props.children;
9359
+ children = props.children,
9360
+ theme = props.theme;
9355
9361
 
9356
9362
  function handleClick(_ref, index) {
9357
9363
  var target = _ref.target;
@@ -9370,7 +9376,7 @@ var CodeTabs = function CodeTabs(props) {
9370
9376
  /*#__PURE__*/
9371
9377
  // eslint-disable-next-line react/jsx-props-no-spreading
9372
9378
  React.createElement("div", _extends({}, attributes, {
9373
- className: "CodeTabs CodeTabs_initial"
9379
+ className: "CodeTabs CodeTabs_initial theme-".concat(theme)
9374
9380
  }), /*#__PURE__*/React.createElement("div", {
9375
9381
  className: "CodeTabs-toolbar"
9376
9382
  }, children.map(function (_ref2, i) {
@@ -9395,14 +9401,25 @@ var CodeTabs = function CodeTabs(props) {
9395
9401
 
9396
9402
  CodeTabs.propTypes = {
9397
9403
  attributes: PropTypes.shape({}),
9398
- children: PropTypes.arrayOf(PropTypes.any).isRequired
9404
+ children: PropTypes.arrayOf(PropTypes.any).isRequired,
9405
+ theme: PropTypes.string
9399
9406
  };
9400
9407
  CodeTabs.defaultProps = {
9401
9408
  attributes: null
9402
9409
  };
9403
9410
 
9404
- module.exports = function () {
9405
- return CodeTabs;
9411
+ function CreateCodeTabs(_ref3) {
9412
+ var theme = _ref3.theme;
9413
+ // eslint-disable-next-line react/display-name
9414
+ return function (props) {
9415
+ return /*#__PURE__*/React.createElement(CodeTabs, _extends({}, props, {
9416
+ theme: theme
9417
+ }));
9418
+ };
9419
+ }
9420
+
9421
+ module.exports = function (_, opts) {
9422
+ return CreateCodeTabs(opts);
9406
9423
  };
9407
9424
 
9408
9425
  /***/ }),
@@ -9432,7 +9449,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9432
9449
  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; } }
9433
9450
 
9434
9451
  /* eslint-disable react/jsx-props-no-spreading, jsx-a11y/iframe-has-title */
9435
- var React = __webpack_require__(7444);
9452
+ var React = __webpack_require__(4466);
9436
9453
 
9437
9454
  var propTypes = __webpack_require__(5697);
9438
9455
 
@@ -9566,7 +9583,7 @@ module.exports = function () {
9566
9583
 
9567
9584
  var _extends = __webpack_require__(7154);
9568
9585
 
9569
- var React = __webpack_require__(7444);
9586
+ var React = __webpack_require__(4466);
9570
9587
 
9571
9588
  var PropTypes = __webpack_require__(5697);
9572
9589
 
@@ -9636,7 +9653,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
9636
9653
 
9637
9654
  /* eslint-disable no-eval
9638
9655
  */
9639
- var React = __webpack_require__(7444);
9656
+ var React = __webpack_require__(4466);
9640
9657
 
9641
9658
  var PropTypes = __webpack_require__(5697);
9642
9659
 
@@ -9728,7 +9745,7 @@ var _objectWithoutProperties = __webpack_require__(6479);
9728
9745
 
9729
9746
  var _excluded = ["tag", "showAnchorIcons"];
9730
9747
 
9731
- var React = __webpack_require__(7444);
9748
+ var React = __webpack_require__(4466);
9732
9749
 
9733
9750
  var PropTypes = __webpack_require__(5697);
9734
9751
 
@@ -9812,7 +9829,7 @@ var _objectWithoutProperties = __webpack_require__(6479);
9812
9829
  var _excluded = ["alt", "onScroll", "opened"];
9813
9830
 
9814
9831
  /* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-noninteractive-tabindex, react/jsx-props-no-spreading */
9815
- var React = __webpack_require__(7444);
9832
+ var React = __webpack_require__(4466);
9816
9833
  /**
9817
9834
  * A very simple, CSS-driven lightbox.
9818
9835
  * @todo currently, a new <Lightbox> instance is rendered for
@@ -9880,7 +9897,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9880
9897
  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; } }
9881
9898
 
9882
9899
  /* eslint-disable no-param-reassign, react/jsx-props-no-spreading, no-fallthrough */
9883
- var React = __webpack_require__(7444);
9900
+ var React = __webpack_require__(4466);
9884
9901
 
9885
9902
  var PropTypes = __webpack_require__(5697);
9886
9903
 
@@ -10025,7 +10042,7 @@ module.exports = function (sanitizeSchema) {
10025
10042
  /***/ 484:
10026
10043
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10027
10044
 
10028
- var React = __webpack_require__(7444);
10045
+ var React = __webpack_require__(4466);
10029
10046
 
10030
10047
  var PropTypes = __webpack_require__(5697);
10031
10048
 
@@ -10051,7 +10068,7 @@ module.exports = function () {
10051
10068
  /***/ 4479:
10052
10069
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10053
10070
 
10054
- var React = __webpack_require__(7444);
10071
+ var React = __webpack_require__(4466);
10055
10072
 
10056
10073
  var PropTypes = __webpack_require__(5697);
10057
10074
 
@@ -10133,7 +10150,7 @@ __webpack_require__.r(__webpack_exports__);
10133
10150
  /***/ 6785:
10134
10151
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10135
10152
 
10136
- var React = __webpack_require__(7444);
10153
+ var React = __webpack_require__(4466);
10137
10154
 
10138
10155
  module.exports = React.createContext('/');
10139
10156
 
@@ -10142,7 +10159,7 @@ module.exports = React.createContext('/');
10142
10159
  /***/ 1252:
10143
10160
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10144
10161
 
10145
- var React = __webpack_require__(7444);
10162
+ var React = __webpack_require__(4466);
10146
10163
 
10147
10164
  module.exports = React.createContext([]);
10148
10165
 
@@ -10169,382 +10186,381 @@ if (true) {
10169
10186
  /***/ }),
10170
10187
 
10171
10188
  /***/ 6841:
10172
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10189
+ /***/ ((module) => {
10173
10190
 
10174
- var _typeof = __webpack_require__(8);
10191
+ (function () {
10192
+ var e = {
10193
+ 559: function _(e) {
10194
+ var l = {
10195
+ aspx: "asp",
10196
+ bash: "shell",
10197
+ "c++": "cplusplus",
10198
+ "c#": "csharp",
10199
+ clj: "clojure",
10200
+ cljc: "clojure",
10201
+ cljx: "clojure",
10202
+ coffeescript: "javascript",
10203
+ cpp: "cplusplus",
10204
+ cql: "sql",
10205
+ cs: "csharp",
10206
+ docker: "dockerfile",
10207
+ ecmascript: "javascript",
10208
+ erl: "erlang",
10209
+ gql: "graphql",
10210
+ gradle: "groovy",
10211
+ handlebars: "html",
10212
+ hbs: "html",
10213
+ jl: "julia",
10214
+ jruby: "ruby",
10215
+ js: "javascript",
10216
+ kt: "kotlin",
10217
+ less: "css",
10218
+ macruby: "ruby",
10219
+ md: "markdown",
10220
+ ml: "ocaml",
10221
+ mssql: "sql",
10222
+ mysql: "sql",
10223
+ node: "javascript",
10224
+ "obj-c": "objectivec",
10225
+ "obj-c++": "objectivecplusplus",
10226
+ "objc++": "objectivecplusplus",
10227
+ objc: "objectivec",
10228
+ objcpp: "objectivecplusplus",
10229
+ objectivecpp: "objectivecplusplus",
10230
+ pgsql: "sql",
10231
+ pl: "perl",
10232
+ plsql: "sql",
10233
+ postgres: "sql",
10234
+ postgresql: "sql",
10235
+ ps1: "powershell",
10236
+ py: "python",
10237
+ rake: "ruby",
10238
+ rb: "ruby",
10239
+ rbx: "ruby",
10240
+ rs: "rust",
10241
+ sass: "css",
10242
+ scss: "css",
10243
+ sh: "shell",
10244
+ sqlite: "sql",
10245
+ styl: "css",
10246
+ stylus: "css",
10247
+ xhtml: "html",
10248
+ yml: "yaml",
10249
+ zsh: "shell"
10250
+ };
10251
+
10252
+ e.exports = function (e) {
10253
+ return e in l ? l[e] : e;
10254
+ };
10255
+ },
10256
+ 476: function _(e) {
10257
+ function l(e, l) {
10258
+ return function (e) {
10259
+ if (Array.isArray(e)) return e;
10260
+ }(e) || function (e, l) {
10261
+ var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
10262
+ if (null == t) return;
10263
+ var s,
10264
+ r,
10265
+ c = [],
10266
+ a = !0,
10267
+ o = !1;
10268
+
10269
+ try {
10270
+ for (t = t.call(e); !(a = (s = t.next()).done) && (c.push(s.value), !l || c.length !== l); a = !0) {
10271
+ ;
10272
+ }
10273
+ } catch (e) {
10274
+ o = !0, r = e;
10275
+ } finally {
10276
+ try {
10277
+ a || null == t.return || t.return();
10278
+ } finally {
10279
+ if (o) throw r;
10280
+ }
10281
+ }
10282
+
10283
+ return c;
10284
+ }(e, l) || function (e, l) {
10285
+ if (!e) return;
10286
+ if ("string" == typeof e) return t(e, l);
10287
+ var s = Object.prototype.toString.call(e).slice(8, -1);
10288
+ "Object" === s && e.constructor && (s = e.constructor.name);
10289
+ if ("Map" === s || "Set" === s) return Array.from(e);
10290
+ if ("Arguments" === s || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)) return t(e, l);
10291
+ }(e, l) || function () {
10292
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10293
+ }();
10294
+ }
10295
+
10296
+ function t(e, l) {
10297
+ (null == l || l > e.length) && (l = e.length);
10298
+
10299
+ for (var t = 0, s = new Array(l); t < l; t++) {
10300
+ s[t] = e[t];
10301
+ }
10302
+
10303
+ return s;
10304
+ }
10305
+
10306
+ var s = {
10307
+ asp: "clike",
10308
+ aspx: "clike",
10309
+ bash: "shell",
10310
+ c: "clike",
10311
+ "c#": ["clike", "text/x-csharp"],
10312
+ "c++": ["clike", "text/x-c++src"],
10313
+ clj: "clojure",
10314
+ cljc: "clojure",
10315
+ cljx: "clojure",
10316
+ coffeescript: "javascript",
10317
+ cplusplus: ["clike", "text/x-c++src"],
10318
+ cpp: ["clike", "text/x-c++src"],
10319
+ cql: ["sql", "text/x-cassandra"],
10320
+ cs: ["clike", "text/x-csharp"],
10321
+ csharp: ["clike", "text/x-csharp"],
10322
+ curl: "shell",
10323
+ d: "d",
10324
+ diff: "diff",
10325
+ ecmascript: "javascript",
10326
+ erl: "erlang",
10327
+ go: ["go", "text/x-go"],
10328
+ gradle: "groovy",
10329
+ gql: "graphql",
10330
+ handlebars: "htmlmixed",
10331
+ hbs: "htmlmixed",
10332
+ html: "htmlmixed",
10333
+ java: ["clike", "text/x-java"],
10334
+ jl: "julia",
10335
+ js: "javascript",
10336
+ jsx: "jsx",
10337
+ json: ["javascript", "application/ld+json"],
10338
+ jruby: "ruby",
10339
+ kotlin: ["clike", "text/x-kotlin"],
10340
+ kt: ["clike", "text/x-kotlin"],
10341
+ less: "css",
10342
+ liquid: "htmlmixed",
10343
+ node: "javascript",
10344
+ macruby: "ruby",
10345
+ markdown: "gfm",
10346
+ ml: ["mllike", "text/x-ocaml"],
10347
+ mssql: ["sql", "text/x-mssql"],
10348
+ mysql: ["sql", "text/x-mysql"],
10349
+ objc: ["clike", "text/x-objectivec"],
10350
+ "objc++": ["clike", "text/x-objectivec++"],
10351
+ objcpp: ["clike", "text/x-objectivec++"],
10352
+ objectivec: ["clike", "text/x-objectivec"],
10353
+ objectivecpp: ["clike", "text/x-objectivec++"],
10354
+ objectivecplusplus: ["clike", "text/x-objectivec++"],
10355
+ ocaml: ["mllike", "text/x-ocaml"],
10356
+ php: ["php", "text/x-php"],
10357
+ pgsql: ["sql", "text/x-pgsql"],
10358
+ pl: "perl",
10359
+ plsql: ["sql", "text/x-plsql"],
10360
+ postgres: ["sql", "text/x-pgsql"],
10361
+ postgresql: ["sql", "text/x-pgsql"],
10362
+ ps1: "powershell",
10363
+ py: "python",
10364
+ r: "r",
10365
+ rake: "ruby",
10366
+ rb: "ruby",
10367
+ rbx: "ruby",
10368
+ rs: "rust",
10369
+ sass: "css",
10370
+ scala: ["clike", "text/x-scala"],
10371
+ scss: "css",
10372
+ sh: "shell",
10373
+ sql: ["sql", "text/x-sql"],
10374
+ sqlite: ["sql", "text/x-sqlite"],
10375
+ styl: "css",
10376
+ stylus: "css",
10377
+ text: ["null", "text/plain"],
10378
+ ts: ["javascript", "text/typescript"],
10379
+ typescript: ["javascript", "text/typescript"],
10380
+ xhtml: "htmlmixed",
10381
+ yml: "yaml",
10382
+ zsh: "shell"
10383
+ };
10384
+ e.exports = {
10385
+ modes: s,
10386
+ getMode: function getMode(e) {
10387
+ var t = e;
10388
+ return t in s && (t = s[t], Array.isArray(t) && (t = l(t, 2)[1])), t;
10389
+ }
10390
+ };
10391
+ },
10392
+ 857: function _(e) {
10393
+ var l = {
10394
+ asp: "ASP.NET",
10395
+ aspx: "ASP.NET",
10396
+ bash: "Bash",
10397
+ c: "C",
10398
+ "c#": "C#",
10399
+ "c++": "C++",
10400
+ coffeescript: "CoffeeScript",
10401
+ clj: "Clojure",
10402
+ cljc: "Clojure",
10403
+ cljx: "Clojure",
10404
+ clojure: "Clojure",
10405
+ cplusplus: "C++",
10406
+ cpp: "C++",
10407
+ cql: "Cassandra",
10408
+ cs: "C#",
10409
+ csharp: "C#",
10410
+ css: "CSS",
10411
+ curl: "cURL",
10412
+ d: "D",
10413
+ dart: "Dart",
10414
+ diff: "Diff",
10415
+ dockerfile: "Dockerfile",
10416
+ ecmascript: "ECMAScript",
10417
+ erl: "Erlang",
10418
+ erlang: "Erlang",
10419
+ go: "Go",
10420
+ gql: "GraphQL",
10421
+ gradle: "Gradle",
10422
+ graphql: "GraphQL",
10423
+ groovy: "Groovy",
10424
+ handlebars: "Handlebars",
10425
+ hbs: "Handlebars",
10426
+ haml: "HAML",
10427
+ haxe: "Haxe",
10428
+ html: "HTML",
10429
+ http: "HTTP",
10430
+ java: "Java",
10431
+ javascript: "JavaScript",
10432
+ jinja2: "Jinja2",
10433
+ jl: "Julia",
10434
+ jruby: "JRuby",
10435
+ js: "JavaScript",
10436
+ json: "JSON",
10437
+ jsx: "JSX",
10438
+ julia: "Julia",
10439
+ kotlin: "Kotlin",
10440
+ kt: "Kotlin",
10441
+ less: "LESS",
10442
+ liquid: "Liquid",
10443
+ lua: "Lua",
10444
+ macruby: "MacRuby",
10445
+ markdown: "Markdown",
10446
+ md: "Markdown",
10447
+ ml: "OCaml",
10448
+ mssql: "SQL Server",
10449
+ mysql: "MySQL",
10450
+ node: "Node",
10451
+ objc: "Objective-C",
10452
+ "objc++": "Objective-C++",
10453
+ objcpp: "Objective-C++",
10454
+ objectivec: "Objective-C",
10455
+ objectivecpp: "Objective-C++",
10456
+ objectivecplusplus: "Objective-C++",
10457
+ ocaml: "OCaml",
10458
+ perl: "Perl",
10459
+ php: "PHP",
10460
+ pl: "Perl",
10461
+ pgsql: "PL/pgSQL",
10462
+ plsql: "PL/SQL",
10463
+ postgres: "PostgreSQL",
10464
+ postgresql: "PostgreSQL",
10465
+ powershell: "PowerShell",
10466
+ ps1: "PowerShell",
10467
+ python: "Python",
10468
+ py: "Python",
10469
+ r: "R",
10470
+ rake: "Rake",
10471
+ rb: "Ruby",
10472
+ rbx: "Rubinius",
10473
+ rs: "Rust",
10474
+ ruby: "Ruby",
10475
+ rust: "Rust",
10476
+ sass: "Sass",
10477
+ scala: "Scala",
10478
+ scss: "SCSS",
10479
+ sh: "Shell",
10480
+ shell: "Shell",
10481
+ smarty: "Smarty",
10482
+ sql: "SQL",
10483
+ sqlite: "SQLite",
10484
+ stylus: "Stylus",
10485
+ styl: "Stylus",
10486
+ swift: "Swift",
10487
+ text: "Text",
10488
+ toml: "TOML",
10489
+ twig: "Twig",
10490
+ typescript: "TypeScript",
10491
+ xhtml: "XHTML",
10492
+ xml: "XML",
10493
+ yaml: "YAML",
10494
+ yml: "YAML",
10495
+ zsh: "Zsh"
10496
+ };
10175
10497
 
10176
- module.exports = function (e) {
10177
- var t = {};
10498
+ e.exports = function (e) {
10499
+ return e in l ? l[e] : e;
10500
+ };
10501
+ }
10502
+ },
10503
+ l = {};
10178
10504
 
10179
- function l(r) {
10180
- if (t[r]) return t[r].exports;
10181
- var s = t[r] = {
10182
- i: r,
10183
- l: !1,
10505
+ function t(s) {
10506
+ var r = l[s];
10507
+ if (void 0 !== r) return r.exports;
10508
+ var c = l[s] = {
10184
10509
  exports: {}
10185
10510
  };
10186
- return e[r].call(s.exports, s, s.exports, l), s.l = !0, s.exports;
10511
+ return e[s](c, c.exports, t), c.exports;
10187
10512
  }
10188
10513
 
10189
- return l.m = e, l.c = t, l.d = function (e, t, r) {
10190
- l.o(e, t) || Object.defineProperty(e, t, {
10191
- enumerable: !0,
10192
- get: r
10193
- });
10194
- }, l.r = function (e) {
10195
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
10196
- value: "Module"
10197
- }), Object.defineProperty(e, "__esModule", {
10198
- value: !0
10199
- });
10200
- }, l.t = function (e, t) {
10201
- if (1 & t && (e = l(e)), 8 & t) return e;
10202
- if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
10203
- var r = Object.create(null);
10204
- if (l.r(r), Object.defineProperty(r, "default", {
10205
- enumerable: !0,
10206
- value: e
10207
- }), 2 & t && "string" != typeof e) for (var s in e) {
10208
- l.d(r, s, function (t) {
10209
- return e[t];
10210
- }.bind(null, s));
10211
- }
10212
- return r;
10213
- }, l.n = function (e) {
10214
- var t = e && e.__esModule ? function () {
10514
+ t.n = function (e) {
10515
+ var l = e && e.__esModule ? function () {
10215
10516
  return e.default;
10216
10517
  } : function () {
10217
10518
  return e;
10218
10519
  };
10219
- return l.d(t, "a", t), t;
10220
- }, l.o = function (e, t) {
10221
- return Object.prototype.hasOwnProperty.call(e, t);
10222
- }, l.p = "", l(l.s = 3);
10223
- }([function (e, t) {
10224
- function l(e, t) {
10225
- return function (e) {
10226
- if (Array.isArray(e)) return e;
10227
- }(e) || function (e, t) {
10228
- var l = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
10229
- if (null == l) return;
10230
- var r,
10231
- s,
10232
- c = [],
10233
- o = !0,
10234
- a = !1;
10235
-
10236
- try {
10237
- for (l = l.call(e); !(o = (r = l.next()).done) && (c.push(r.value), !t || c.length !== t); o = !0) {
10238
- ;
10239
- }
10240
- } catch (e) {
10241
- a = !0, s = e;
10242
- } finally {
10243
- try {
10244
- o || null == l.return || l.return();
10245
- } finally {
10246
- if (a) throw s;
10247
- }
10248
- }
10249
-
10250
- return c;
10251
- }(e, t) || function (e, t) {
10252
- if (!e) return;
10253
- if ("string" == typeof e) return r(e, t);
10254
- var l = Object.prototype.toString.call(e).slice(8, -1);
10255
- "Object" === l && e.constructor && (l = e.constructor.name);
10256
- if ("Map" === l || "Set" === l) return Array.from(e);
10257
- if ("Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return r(e, t);
10258
- }(e, t) || function () {
10259
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10260
- }();
10261
- }
10262
-
10263
- function r(e, t) {
10264
- (null == t || t > e.length) && (t = e.length);
10265
-
10266
- for (var l = 0, r = new Array(t); l < t; l++) {
10267
- r[l] = e[l];
10268
- }
10269
-
10270
- return r;
10271
- }
10272
-
10273
- var s = {
10274
- asp: "clike",
10275
- aspx: "clike",
10276
- bash: "shell",
10277
- c: "clike",
10278
- "c#": ["clike", "text/x-csharp"],
10279
- "c++": ["clike", "text/x-c++src"],
10280
- clj: "clojure",
10281
- cljc: "clojure",
10282
- cljx: "clojure",
10283
- coffeescript: "javascript",
10284
- cplusplus: ["clike", "text/x-c++src"],
10285
- cpp: ["clike", "text/x-c++src"],
10286
- cql: ["sql", "text/x-cassandra"],
10287
- cs: ["clike", "text/x-csharp"],
10288
- csharp: ["clike", "text/x-csharp"],
10289
- curl: "shell",
10290
- d: "d",
10291
- diff: "diff",
10292
- ecmascript: "javascript",
10293
- erl: "erlang",
10294
- go: ["go", "text/x-go"],
10295
- gradle: "groovy",
10296
- handlebars: "htmlmixed",
10297
- hbs: "htmlmixed",
10298
- html: "htmlmixed",
10299
- java: ["clike", "text/x-java"],
10300
- jl: "julia",
10301
- js: "javascript",
10302
- jsx: "jsx",
10303
- json: ["javascript", "application/ld+json"],
10304
- jruby: "ruby",
10305
- kotlin: ["clike", "text/x-kotlin"],
10306
- kt: ["clike", "text/x-kotlin"],
10307
- less: "css",
10308
- liquid: "htmlmixed",
10309
- node: "javascript",
10310
- macruby: "ruby",
10311
- markdown: "gfm",
10312
- ml: ["mllike", "text/x-ocaml"],
10313
- mssql: ["sql", "text/x-mssql"],
10314
- mysql: ["sql", "text/x-mysql"],
10315
- objc: ["clike", "text/x-objectivec"],
10316
- "objc++": ["clike", "text/x-objectivec++"],
10317
- objcpp: ["clike", "text/x-objectivec++"],
10318
- objectivec: ["clike", "text/x-objectivec"],
10319
- objectivecpp: ["clike", "text/x-objectivec++"],
10320
- objectivecplusplus: ["clike", "text/x-objectivec++"],
10321
- ocaml: ["mllike", "text/x-ocaml"],
10322
- php: ["php", "text/x-php"],
10323
- pgsql: ["sql", "text/x-pgsql"],
10324
- pl: "perl",
10325
- plsql: ["sql", "text/x-plsql"],
10326
- postgres: ["sql", "text/x-pgsql"],
10327
- postgresql: ["sql", "text/x-pgsql"],
10328
- ps1: "powershell",
10329
- py: "python",
10330
- r: "r",
10331
- rake: "ruby",
10332
- rb: "ruby",
10333
- rbx: "ruby",
10334
- rs: "rust",
10335
- sass: "css",
10336
- scala: ["clike", "text/x-scala"],
10337
- scss: "css",
10338
- sh: "shell",
10339
- sql: ["sql", "text/x-sql"],
10340
- sqlite: ["sql", "text/x-sqlite"],
10341
- styl: "css",
10342
- stylus: "css",
10343
- text: ["null", "text/plain"],
10344
- ts: ["javascript", "text/typescript"],
10345
- typescript: ["javascript", "text/typescript"],
10346
- xhtml: "htmlmixed",
10347
- yml: "yaml",
10348
- zsh: "shell"
10349
- };
10350
- e.exports = {
10351
- modes: s,
10352
- getMode: function getMode(e) {
10353
- var t = e;
10354
- return t in s && (t = s[t], Array.isArray(t) && (t = l(t, 2)[1])), t;
10520
+ return t.d(l, {
10521
+ a: l
10522
+ }), l;
10523
+ }, t.d = function (e, l) {
10524
+ for (var s in l) {
10525
+ t.o(l, s) && !t.o(e, s) && Object.defineProperty(e, s, {
10526
+ enumerable: !0,
10527
+ get: l[s]
10528
+ });
10355
10529
  }
10530
+ }, t.o = function (e, l) {
10531
+ return Object.prototype.hasOwnProperty.call(e, l);
10532
+ }, t.r = function (e) {
10533
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
10534
+ value: "Module"
10535
+ }), Object.defineProperty(e, "__esModule", {
10536
+ value: !0
10537
+ });
10356
10538
  };
10357
- }, function (e, t) {
10358
- var l = {
10359
- asp: "ASP.NET",
10360
- aspx: "ASP.NET",
10361
- bash: "Bash",
10362
- c: "C",
10363
- "c#": "C#",
10364
- "c++": "C++",
10365
- coffeescript: "CoffeeScript",
10366
- clj: "Clojure",
10367
- cljc: "Clojure",
10368
- cljx: "Clojure",
10369
- clojure: "Clojure",
10370
- cplusplus: "C++",
10371
- cpp: "C++",
10372
- cql: "Cassandra",
10373
- cs: "C#",
10374
- csharp: "C#",
10375
- css: "CSS",
10376
- curl: "cURL",
10377
- d: "D",
10378
- dart: "Dart",
10379
- diff: "Diff",
10380
- dockerfile: "Dockerfile",
10381
- ecmascript: "ECMAScript",
10382
- erl: "Erlang",
10383
- erlang: "Erlang",
10384
- go: "Go",
10385
- gradle: "Gradle",
10386
- groovy: "Groovy",
10387
- handlebars: "Handlebars",
10388
- hbs: "Handlebars",
10389
- haml: "HAML",
10390
- haxe: "Haxe",
10391
- html: "HTML",
10392
- http: "HTTP",
10393
- java: "Java",
10394
- javascript: "JavaScript",
10395
- jinja2: "Jinja2",
10396
- jl: "Julia",
10397
- jruby: "JRuby",
10398
- js: "JavaScript",
10399
- json: "JSON",
10400
- jsx: "JSX",
10401
- julia: "Julia",
10402
- kotlin: "Kotlin",
10403
- kt: "Kotlin",
10404
- less: "LESS",
10405
- liquid: "Liquid",
10406
- lua: "Lua",
10407
- macruby: "MacRuby",
10408
- markdown: "Markdown",
10409
- md: "Markdown",
10410
- ml: "OCaml",
10411
- mssql: "SQL Server",
10412
- mysql: "MySQL",
10413
- node: "Node",
10414
- objc: "Objective-C",
10415
- "objc++": "Objective-C++",
10416
- objcpp: "Objective-C++",
10417
- objectivec: "Objective-C",
10418
- objectivecpp: "Objective-C++",
10419
- objectivecplusplus: "Objective-C++",
10420
- ocaml: "OCaml",
10421
- perl: "Perl",
10422
- php: "PHP",
10423
- pl: "Perl",
10424
- pgsql: "PL/pgSQL",
10425
- plsql: "PL/SQL",
10426
- postgres: "PostgreSQL",
10427
- postgresql: "PostgreSQL",
10428
- powershell: "PowerShell",
10429
- ps1: "PowerShell",
10430
- python: "Python",
10431
- py: "Python",
10432
- r: "R",
10433
- rake: "Rake",
10434
- rb: "Ruby",
10435
- rbx: "Rubinius",
10436
- rs: "Rust",
10437
- ruby: "Ruby",
10438
- rust: "Rust",
10439
- sass: "Sass",
10440
- scala: "Scala",
10441
- scss: "SCSS",
10442
- sh: "Shell",
10443
- shell: "Shell",
10444
- smarty: "Smarty",
10445
- sql: "SQL",
10446
- sqlite: "SQLite",
10447
- stylus: "Stylus",
10448
- styl: "Stylus",
10449
- swift: "Swift",
10450
- text: "Text",
10451
- toml: "TOML",
10452
- twig: "Twig",
10453
- typescript: "TypeScript",
10454
- xhtml: "XHTML",
10455
- xml: "XML",
10456
- yaml: "YAML",
10457
- yml: "YAML",
10458
- zsh: "Zsh"
10459
- };
10460
-
10461
- e.exports = function (e) {
10462
- return e in l ? l[e] : e;
10463
- };
10464
- }, function (e, t) {
10465
- var l = {
10466
- aspx: "asp",
10467
- bash: "shell",
10468
- "c++": "cplusplus",
10469
- "c#": "csharp",
10470
- clj: "clojure",
10471
- cljc: "clojure",
10472
- cljx: "clojure",
10473
- coffeescript: "javascript",
10474
- cpp: "cplusplus",
10475
- cql: "sql",
10476
- cs: "csharp",
10477
- docker: "dockerfile",
10478
- ecmascript: "javascript",
10479
- erl: "erlang",
10480
- gradle: "groovy",
10481
- handlebars: "html",
10482
- hbs: "html",
10483
- jl: "julia",
10484
- jruby: "ruby",
10485
- js: "javascript",
10486
- kt: "kotlin",
10487
- less: "css",
10488
- macruby: "ruby",
10489
- md: "markdown",
10490
- ml: "ocaml",
10491
- mssql: "sql",
10492
- mysql: "sql",
10493
- node: "javascript",
10494
- "obj-c": "objectivec",
10495
- "obj-c++": "objectivecplusplus",
10496
- "objc++": "objectivecplusplus",
10497
- objc: "objectivec",
10498
- objcpp: "objectivecplusplus",
10499
- objectivecpp: "objectivecplusplus",
10500
- pgsql: "sql",
10501
- pl: "perl",
10502
- plsql: "sql",
10503
- postgres: "sql",
10504
- postgresql: "sql",
10505
- ps1: "powershell",
10506
- py: "python",
10507
- rake: "ruby",
10508
- rb: "ruby",
10509
- rbx: "ruby",
10510
- rs: "rust",
10511
- sass: "css",
10512
- scss: "css",
10513
- sh: "shell",
10514
- sqlite: "sql",
10515
- styl: "css",
10516
- stylus: "css",
10517
- xhtml: "html",
10518
- yml: "yaml",
10519
- zsh: "shell"
10520
- };
10521
-
10522
- e.exports = function (e) {
10523
- return e in l ? l[e] : e;
10524
- };
10525
- }, function (e, t, l) {
10526
- e.exports = l(4);
10527
- }, function (e, t, l) {
10528
- "use strict";
10539
+ var s = {};
10540
+ (function () {
10541
+ "use strict";
10529
10542
 
10530
- l.r(t);
10531
- var r = l(1),
10532
- s = l.n(r);
10533
- l.d(t, "uppercase", function () {
10534
- return s.a;
10535
- });
10536
- var c = l(2),
10537
- o = l.n(c);
10538
- l.d(t, "canonical", function () {
10539
- return o.a;
10540
- });
10541
- var a = l(0);
10542
- l.d(t, "modes", function () {
10543
- return a.modes;
10544
- }), l.d(t, "getMode", function () {
10545
- return a.getMode;
10546
- });
10547
- }]);
10543
+ t.r(s), t.d(s, {
10544
+ uppercase: function uppercase() {
10545
+ return l.a;
10546
+ },
10547
+ canonical: function canonical() {
10548
+ return c.a;
10549
+ },
10550
+ modes: function modes() {
10551
+ return a.modes;
10552
+ },
10553
+ getMode: function getMode() {
10554
+ return a.getMode;
10555
+ }
10556
+ });
10557
+ var e = t(857),
10558
+ l = t.n(e),
10559
+ r = t(559),
10560
+ c = t.n(r),
10561
+ a = t(476);
10562
+ })(), module.exports = s;
10563
+ })();
10548
10564
 
10549
10565
  /***/ }),
10550
10566
 
@@ -10582,7 +10598,8 @@ var options = {
10582
10598
  normalize: true,
10583
10599
  settings: {
10584
10600
  position: false
10585
- }
10601
+ },
10602
+ theme: 'light'
10586
10603
  };
10587
10604
  /**
10588
10605
  * @note disabling `newline`, `paragraph`, or `text` tokenizers trips Remark into an infinite loop!
@@ -11537,7 +11554,7 @@ module.exports.sanitize = function (sanitizeSchema) {
11537
11554
  /***/ 2697:
11538
11555
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11539
11556
 
11540
- var _require = __webpack_require__(2215),
11557
+ var _require = __webpack_require__(3689),
11541
11558
  VARIABLE_REGEXP = _require.VARIABLE_REGEXP;
11542
11559
 
11543
11560
  function tokenizeVariable(eat, value, silent) {
@@ -15532,7 +15549,7 @@ module.exports = svg
15532
15549
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
15533
15550
 
15534
15551
  try {
15535
- var util = __webpack_require__(1669);
15552
+ var util = __webpack_require__(3837);
15536
15553
  /* istanbul ignore next */
15537
15554
  if (typeof util.inherits !== 'function') throw '';
15538
15555
  module.exports = util.inherits;
@@ -29414,7 +29431,7 @@ function repeat(str, num) {
29414
29431
  "use strict";
29415
29432
 
29416
29433
 
29417
- var path = __webpack_require__(5622);
29434
+ var path = __webpack_require__(1017);
29418
29435
 
29419
29436
  function replaceExt(npath, ext) {
29420
29437
  if (typeof npath !== 'string') {
@@ -31552,7 +31569,7 @@ function parseOrigin(origin) {
31552
31569
  "use strict";
31553
31570
 
31554
31571
 
31555
- var path = __webpack_require__(5622)
31572
+ var path = __webpack_require__(1017)
31556
31573
  var replace = __webpack_require__(8245)
31557
31574
  var buffer = __webpack_require__(8738)
31558
31575
 
@@ -31843,35 +31860,35 @@ function factory(key, options) {
31843
31860
 
31844
31861
  /***/ }),
31845
31862
 
31846
- /***/ 2215:
31863
+ /***/ 1017:
31847
31864
  /***/ ((module) => {
31848
31865
 
31849
31866
  "use strict";
31850
- module.exports = __WEBPACK_EXTERNAL_MODULE__2215__;
31867
+ module.exports = require("path");
31851
31868
 
31852
31869
  /***/ }),
31853
31870
 
31854
- /***/ 5622:
31871
+ /***/ 3837:
31855
31872
  /***/ ((module) => {
31856
31873
 
31857
31874
  "use strict";
31858
- module.exports = require("path");
31875
+ module.exports = require("util");
31859
31876
 
31860
31877
  /***/ }),
31861
31878
 
31862
- /***/ 1669:
31879
+ /***/ 3689:
31863
31880
  /***/ ((module) => {
31864
31881
 
31865
31882
  "use strict";
31866
- module.exports = require("util");
31883
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3689__;
31867
31884
 
31868
31885
  /***/ }),
31869
31886
 
31870
- /***/ 7444:
31887
+ /***/ 4466:
31871
31888
  /***/ ((module) => {
31872
31889
 
31873
31890
  "use strict";
31874
- module.exports = __WEBPACK_EXTERNAL_MODULE__7444__;
31891
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4466__;
31875
31892
 
31876
31893
  /***/ }),
31877
31894
 
@@ -32064,7 +32081,7 @@ const defaultSchema = {
32064
32081
 
32065
32082
  /***/ }),
32066
32083
 
32067
- /***/ 9823:
32084
+ /***/ 5907:
32068
32085
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
32069
32086
 
32070
32087
  "use strict";
@@ -33724,7 +33741,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
33724
33741
  /* eslint-disable no-param-reassign */
33725
33742
  __webpack_require__(2787);
33726
33743
 
33727
- var React = __webpack_require__(7444);
33744
+ var React = __webpack_require__(4466);
33728
33745
 
33729
33746
  var unified = __webpack_require__(8835);
33730
33747
  /* Unified Plugins
@@ -33737,7 +33754,7 @@ var generateTOC = __webpack_require__(3263);
33737
33754
 
33738
33755
  var mapNodes = __webpack_require__(6579);
33739
33756
 
33740
- var _require = __webpack_require__(9823),
33757
+ var _require = __webpack_require__(5907),
33741
33758
  selectAll = _require.selectAll; // remark plugins
33742
33759
 
33743
33760
 
@@ -33769,7 +33786,7 @@ var rehypeReact = __webpack_require__(7431);
33769
33786
 
33770
33787
  var BaseUrlContext = __webpack_require__(6785);
33771
33788
 
33772
- var Variable = __webpack_require__(2215);
33789
+ var Variable = __webpack_require__(3689);
33773
33790
 
33774
33791
  var Components = __webpack_require__(3354);
33775
33792
 
@@ -33905,7 +33922,7 @@ function reactProcessor() {
33905
33922
  createElement: React.createElement,
33906
33923
  Fragment: React.Fragment,
33907
33924
  components: _objectSpread({
33908
- 'code-tabs': CodeTabs(sanitize),
33925
+ 'code-tabs': CodeTabs(sanitize, opts),
33909
33926
  'html-block': HTMLBlock(sanitize),
33910
33927
  'rdme-callout': Callout(sanitize),
33911
33928
  'readme-variable': Variable,