@readme/markdown 7.7.1 → 7.7.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
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@readme/variable"), require("@tippyjs/react"), require("react"));
3
+ module.exports = factory(require("@readme/variable"), require("@tippyjs/react"), require("mermaid"), require("react"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["@readme/variable", "@tippyjs/react", "react"], factory);
5
+ define(["@readme/variable", "@tippyjs/react", "mermaid", "react"], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("@tippyjs/react"), require("react")) : factory(root["@readme/variable"], root["@tippyjs/react"], root["React"]);
7
+ var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("@tippyjs/react"), require("mermaid"), require("react")) : factory(root["@readme/variable"], root["@tippyjs/react"], root["mermaid"], root["React"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__8167__, __WEBPACK_EXTERNAL_MODULE__6570__, __WEBPACK_EXTERNAL_MODULE__1307__) => {
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__8167__, __WEBPACK_EXTERNAL_MODULE__6570__, __WEBPACK_EXTERNAL_MODULE__1387__, __WEBPACK_EXTERNAL_MODULE__1307__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -13174,6 +13174,14 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__6570__;
13174
13174
 
13175
13175
  /***/ }),
13176
13176
 
13177
+ /***/ 1387:
13178
+ /***/ ((module) => {
13179
+
13180
+ "use strict";
13181
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1387__;
13182
+
13183
+ /***/ }),
13184
+
13177
13185
  /***/ 1307:
13178
13186
  /***/ ((module) => {
13179
13187
 
@@ -13196,24 +13204,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1307__;
13196
13204
  /******/ }
13197
13205
  /******/ // Create a new module (and put it into the cache)
13198
13206
  /******/ var module = __webpack_module_cache__[moduleId] = {
13199
- /******/ id: moduleId,
13200
- /******/ loaded: false,
13207
+ /******/ // no module.id needed
13208
+ /******/ // no module.loaded needed
13201
13209
  /******/ exports: {}
13202
13210
  /******/ };
13203
13211
  /******/
13204
13212
  /******/ // Execute the module function
13205
13213
  /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
13206
13214
  /******/
13207
- /******/ // Flag the module as loaded
13208
- /******/ module.loaded = true;
13209
- /******/
13210
13215
  /******/ // Return the exports of the module
13211
13216
  /******/ return module.exports;
13212
13217
  /******/ }
13213
13218
  /******/
13214
- /******/ // expose the modules object (__webpack_modules__)
13215
- /******/ __webpack_require__.m = __webpack_modules__;
13216
- /******/
13217
13219
  /************************************************************************/
13218
13220
  /******/ /* webpack/runtime/compat get default export */
13219
13221
  /******/ (() => {
@@ -13269,37 +13271,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1307__;
13269
13271
  /******/ };
13270
13272
  /******/ })();
13271
13273
  /******/
13272
- /******/ /* webpack/runtime/ensure chunk */
13273
- /******/ (() => {
13274
- /******/ __webpack_require__.f = {};
13275
- /******/ // This file contains only the entry chunk.
13276
- /******/ // The chunk loading function for additional chunks
13277
- /******/ __webpack_require__.e = (chunkId) => {
13278
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
13279
- /******/ __webpack_require__.f[key](chunkId, promises);
13280
- /******/ return promises;
13281
- /******/ }, []));
13282
- /******/ };
13283
- /******/ })();
13284
- /******/
13285
- /******/ /* webpack/runtime/get javascript chunk filename */
13286
- /******/ (() => {
13287
- /******/ // This function allow to reference async chunks
13288
- /******/ __webpack_require__.u = (chunkId) => {
13289
- /******/ // return url for filenames based on template
13290
- /******/ return "" + chunkId + ".js";
13291
- /******/ };
13292
- /******/ })();
13293
- /******/
13294
- /******/ /* webpack/runtime/get mini-css chunk filename */
13295
- /******/ (() => {
13296
- /******/ // This function allow to reference async chunks
13297
- /******/ __webpack_require__.miniCssF = (chunkId) => {
13298
- /******/ // return url for filenames based on template
13299
- /******/ return undefined;
13300
- /******/ };
13301
- /******/ })();
13302
- /******/
13303
13274
  /******/ /* webpack/runtime/global */
13304
13275
  /******/ (() => {
13305
13276
  /******/ __webpack_require__.g = (function() {
@@ -13312,72 +13283,11 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1307__;
13312
13283
  /******/ })();
13313
13284
  /******/ })();
13314
13285
  /******/
13315
- /******/ /* webpack/runtime/harmony module decorator */
13316
- /******/ (() => {
13317
- /******/ __webpack_require__.hmd = (module) => {
13318
- /******/ module = Object.create(module);
13319
- /******/ if (!module.children) module.children = [];
13320
- /******/ Object.defineProperty(module, 'exports', {
13321
- /******/ enumerable: true,
13322
- /******/ set: () => {
13323
- /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
13324
- /******/ }
13325
- /******/ });
13326
- /******/ return module;
13327
- /******/ };
13328
- /******/ })();
13329
- /******/
13330
13286
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
13331
13287
  /******/ (() => {
13332
13288
  /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
13333
13289
  /******/ })();
13334
13290
  /******/
13335
- /******/ /* webpack/runtime/load script */
13336
- /******/ (() => {
13337
- /******/ var inProgress = {};
13338
- /******/ var dataWebpackPrefix = "@readme/markdown:";
13339
- /******/ // loadScript function to load a script via script tag
13340
- /******/ __webpack_require__.l = (url, done, key, chunkId) => {
13341
- /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
13342
- /******/ var script, needAttach;
13343
- /******/ if(key !== undefined) {
13344
- /******/ var scripts = document.getElementsByTagName("script");
13345
- /******/ for(var i = 0; i < scripts.length; i++) {
13346
- /******/ var s = scripts[i];
13347
- /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
13348
- /******/ }
13349
- /******/ }
13350
- /******/ if(!script) {
13351
- /******/ needAttach = true;
13352
- /******/ script = document.createElement('script');
13353
- /******/
13354
- /******/ script.charset = 'utf-8';
13355
- /******/ script.timeout = 120;
13356
- /******/ if (__webpack_require__.nc) {
13357
- /******/ script.setAttribute("nonce", __webpack_require__.nc);
13358
- /******/ }
13359
- /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
13360
- /******/
13361
- /******/ script.src = url;
13362
- /******/ }
13363
- /******/ inProgress[url] = [done];
13364
- /******/ var onScriptComplete = (prev, event) => {
13365
- /******/ // avoid mem leaks in IE.
13366
- /******/ script.onerror = script.onload = null;
13367
- /******/ clearTimeout(timeout);
13368
- /******/ var doneFns = inProgress[url];
13369
- /******/ delete inProgress[url];
13370
- /******/ script.parentNode && script.parentNode.removeChild(script);
13371
- /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
13372
- /******/ if(prev) return prev(event);
13373
- /******/ }
13374
- /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
13375
- /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
13376
- /******/ script.onload = onScriptComplete.bind(null, script.onload);
13377
- /******/ needAttach && document.head.appendChild(script);
13378
- /******/ };
13379
- /******/ })();
13380
- /******/
13381
13291
  /******/ /* webpack/runtime/make namespace object */
13382
13292
  /******/ (() => {
13383
13293
  /******/ // define __esModule on exports
@@ -13389,119 +13299,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1307__;
13389
13299
  /******/ };
13390
13300
  /******/ })();
13391
13301
  /******/
13392
- /******/ /* webpack/runtime/publicPath */
13393
- /******/ (() => {
13394
- /******/ var scriptUrl;
13395
- /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
13396
- /******/ var document = __webpack_require__.g.document;
13397
- /******/ if (!scriptUrl && document) {
13398
- /******/ if (document.currentScript)
13399
- /******/ scriptUrl = document.currentScript.src;
13400
- /******/ if (!scriptUrl) {
13401
- /******/ var scripts = document.getElementsByTagName("script");
13402
- /******/ if(scripts.length) {
13403
- /******/ var i = scripts.length - 1;
13404
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
13405
- /******/ }
13406
- /******/ }
13407
- /******/ }
13408
- /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
13409
- /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
13410
- /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
13411
- /******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
13412
- /******/ __webpack_require__.p = scriptUrl;
13413
- /******/ })();
13414
- /******/
13415
- /******/ /* webpack/runtime/jsonp chunk loading */
13416
- /******/ (() => {
13417
- /******/ // no baseURI
13418
- /******/
13419
- /******/ // object to store loaded and loading chunks
13420
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
13421
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
13422
- /******/ var installedChunks = {
13423
- /******/ 792: 0
13424
- /******/ };
13425
- /******/
13426
- /******/ __webpack_require__.f.j = (chunkId, promises) => {
13427
- /******/ // JSONP chunk loading for javascript
13428
- /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
13429
- /******/ if(installedChunkData !== 0) { // 0 means "already installed".
13430
- /******/
13431
- /******/ // a Promise means "currently loading".
13432
- /******/ if(installedChunkData) {
13433
- /******/ promises.push(installedChunkData[2]);
13434
- /******/ } else {
13435
- /******/ if(true) { // all chunks have JS
13436
- /******/ // setup Promise in chunk cache
13437
- /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
13438
- /******/ promises.push(installedChunkData[2] = promise);
13439
- /******/
13440
- /******/ // start chunk loading
13441
- /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
13442
- /******/ // create error before stack unwound to get useful stacktrace later
13443
- /******/ var error = new Error();
13444
- /******/ var loadingEnded = (event) => {
13445
- /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
13446
- /******/ installedChunkData = installedChunks[chunkId];
13447
- /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
13448
- /******/ if(installedChunkData) {
13449
- /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
13450
- /******/ var realSrc = event && event.target && event.target.src;
13451
- /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
13452
- /******/ error.name = 'ChunkLoadError';
13453
- /******/ error.type = errorType;
13454
- /******/ error.request = realSrc;
13455
- /******/ installedChunkData[1](error);
13456
- /******/ }
13457
- /******/ }
13458
- /******/ };
13459
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
13460
- /******/ }
13461
- /******/ }
13462
- /******/ }
13463
- /******/ };
13464
- /******/
13465
- /******/ // no prefetching
13466
- /******/
13467
- /******/ // no preloaded
13468
- /******/
13469
- /******/ // no HMR
13470
- /******/
13471
- /******/ // no HMR manifest
13472
- /******/
13473
- /******/ // no on chunks loaded
13474
- /******/
13475
- /******/ // install a JSONP callback for chunk loading
13476
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
13477
- /******/ var [chunkIds, moreModules, runtime] = data;
13478
- /******/ // add "moreModules" to the modules object,
13479
- /******/ // then flag all "chunkIds" as loaded and fire callback
13480
- /******/ var moduleId, chunkId, i = 0;
13481
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
13482
- /******/ for(moduleId in moreModules) {
13483
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
13484
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
13485
- /******/ }
13486
- /******/ }
13487
- /******/ if(runtime) var result = runtime(__webpack_require__);
13488
- /******/ }
13489
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
13490
- /******/ for(;i < chunkIds.length; i++) {
13491
- /******/ chunkId = chunkIds[i];
13492
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
13493
- /******/ installedChunks[chunkId][0]();
13494
- /******/ }
13495
- /******/ installedChunks[chunkId] = 0;
13496
- /******/ }
13497
- /******/
13498
- /******/ }
13499
- /******/
13500
- /******/ var chunkLoadingGlobal = self["webpackChunk_readme_markdown"] = self["webpackChunk_readme_markdown"] || [];
13501
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
13502
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
13503
- /******/ })();
13504
- /******/
13505
13302
  /************************************************************************/
13506
13303
  var __webpack_exports__ = {};
13507
13304
  // This entry need to be wrapped in an IIFE because it need to be in strict mode.
@@ -13847,7 +13644,7 @@ var dist = __webpack_require__(4668);
13847
13644
 
13848
13645
  let mermaid;
13849
13646
  if (typeof window !== 'undefined') {
13850
- __webpack_require__.e(/* import() */ 486).then(__webpack_require__.bind(__webpack_require__, 5486)).then(module => {
13647
+ Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 1387, 23)).then(module => {
13851
13648
  mermaid = module.default;
13852
13649
  });
13853
13650
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "7.7.1",
5
+ "version": "7.7.2",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",