: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (!spansOnly) { txt = showdown.subParser('makeMarkdown.table')(node, globals) + '\n\n'; }
txt = showdown.subParser('makeMarkdown.codeSpan')(node, globals);
txt = showdown.subParser('makeMarkdown.emphasis')(node, globals);
txt = showdown.subParser('makeMarkdown.strong')(node, globals);
txt = showdown.subParser('makeMarkdown.strikethrough')(node, globals);
txt = showdown.subParser('makeMarkdown.links')(node, globals);
txt = showdown.subParser('makeMarkdown.image')(node, globals);
txt = node.outerHTML + '\n\n';
showdown.subParser('makeMarkdown.paragraph', function (node, globals) {
if (node.hasChildNodes()) {
var children = node.childNodes,
childrenLength = children.length;
for (var i = 0; i < childrenLength; ++i) {
txt += showdown.subParser('makeMarkdown.node')(children[i], globals);
// some text normalization
showdown.subParser('makeMarkdown.pre', function (node, globals) {
var num = node.getAttribute('prenum');
return '<pre>' + globals.preList[num] + '</pre>';
showdown.subParser('makeMarkdown.strikethrough', function (node, globals) {
if (node.hasChildNodes()) {
var children = node.childNodes,
childrenLength = children.length;
for (var i = 0; i < childrenLength; ++i) {
txt += showdown.subParser('makeMarkdown.node')(children[i], globals);
showdown.subParser('makeMarkdown.strong', function (node, globals) {
if (node.hasChildNodes()) {
var children = node.childNodes,
childrenLength = children.length;
for (var i = 0; i < childrenLength; ++i) {
txt += showdown.subParser('makeMarkdown.node')(children[i], globals);
showdown.subParser('makeMarkdown.table', function (node, globals) {
headings = node.querySelectorAll('thead>tr>th'),
rows = node.querySelectorAll('tbody>tr'),
for (i = 0; i < headings.length; ++i) {
var headContent = showdown.subParser('makeMarkdown.tableCell')(headings[i], globals),
if (headings[i].hasAttribute('style')) {
var style = headings[i].getAttribute('style').toLowerCase().replace(/\s/g, '');
case 'text-align:right;':
case 'text-align:center;':
tableArray[0][i] = headContent.trim();
tableArray[1][i] = allign;
for (i = 0; i < rows.length; ++i) {
var r = tableArray.push([]) - 1,
cols = rows[i].getElementsByTagName('td');
for (ii = 0; ii < headings.length; ++ii) {
if (typeof cols[ii] !== 'undefined') {
cellContent = showdown.subParser('makeMarkdown.tableCell')(cols[ii], globals);
tableArray[r].push(cellContent);
for (i = 0; i < tableArray.length; ++i) {
for (ii = 0; ii < tableArray[i].length; ++ii) {
var strLen = tableArray[i][ii].length;
if (strLen > cellSpacesCount) {
cellSpacesCount = strLen;
for (i = 0; i < tableArray.length; ++i) {
for (ii = 0; ii < tableArray[i].length; ++ii) {
if (tableArray[i][ii].slice(-1) === ':') {
tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii].slice(-1), cellSpacesCount - 1, '-') + ':';
tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii], cellSpacesCount, '-');
tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii], cellSpacesCount);
txt += '| ' + tableArray[i].join(' | ') + ' |\n';
showdown.subParser('makeMarkdown.tableCell', function (node, globals) {
if (!node.hasChildNodes()) {
var children = node.childNodes,
childrenLength = children.length;
for (var i = 0; i < childrenLength; ++i) {
txt += showdown.subParser('makeMarkdown.node')(children[i], globals, true);
showdown.subParser('makeMarkdown.txt', function (node) {
var txt = node.nodeValue;
// multiple spaces are collapsed
txt = txt.replace(/ +/g, ' ');
// replace the custom ¨NBSP; with a space
txt = txt.replace(/¨NBSP;/g, ' ');
// ", <, > and & should replace escaped html entities
txt = showdown.helper.unescapeHTMLEntities(txt);
// escape markdown magic characters
// emphasis, strong and strikethrough - can appear everywhere
// we also escape pipe (|) because of tables
// and escape ` because of code blocks and spans
txt = txt.replace(/([*_~|`])/g, '\\$1');
// escape > because of blockquotes
txt = txt.replace(/^(\s*)>/g, '\\$1>');
// hash character, only troublesome at the beginning of a line because of headers
txt = txt.replace(/^#/gm, '\\#');
txt = txt.replace(/^(\s*)([-=]{3,})(\s*)$/, '$1\\$2$3');
// dot, because of ordered lists, only troublesome at the beginning of a line when preceded by an integer
txt = txt.replace(/^( {0,3}\d+)\./gm, '$1\\.');
// +, * and -, at the beginning of a line becomes a list, so we need to escape them also (asterisk was already escaped)
txt = txt.replace(/^( {0,3})([+-])/gm, '$1\\$2');
// images and links, ] followed by ( is problematic, so we escape it
txt = txt.replace(/]([\s]*)\(/g, '\\]$1\\(');
// reference URIs must also be escaped
txt = txt.replace(/^ {0,3}\[([\S \t]*?)]:/gm, '\\[$1]:');
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {
}).call(exports, __webpack_require__, exports, module),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
// CommonJS/nodeJS Loader
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Return the exports of the module
/******/ return module.exports;
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ __webpack_require__.d(getter, { a: getter });
/******/ /* webpack/runtime/define property getters */
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ /* webpack/runtime/make namespace object */
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
__EXPERIMENTAL_ELEMENTS: () => (/* reexport */ __EXPERIMENTAL_ELEMENTS),
__EXPERIMENTAL_PATHS_WITH_OVERRIDE: () => (/* reexport */ __EXPERIMENTAL_PATHS_WITH_OVERRIDE),
__EXPERIMENTAL_STYLE_PROPERTY: () => (/* reexport */ __EXPERIMENTAL_STYLE_PROPERTY),
__experimentalCloneSanitizedBlock: () => (/* reexport */ __experimentalCloneSanitizedBlock),
__experimentalGetAccessibleBlockLabel: () => (/* reexport */ getAccessibleBlockLabel),
__experimentalGetBlockAttributesNamesByRole: () => (/* reexport */ __experimentalGetBlockAttributesNamesByRole),
__experimentalGetBlockLabel: () => (/* reexport */ getBlockLabel),
__experimentalSanitizeBlockAttributes: () => (/* reexport */ __experimentalSanitizeBlockAttributes),
__unstableGetBlockProps: () => (/* reexport */ getBlockProps),
__unstableGetInnerBlocksProps: () => (/* reexport */ getInnerBlocksProps),
__unstableSerializeAndClean: () => (/* reexport */ __unstableSerializeAndClean),
children: () => (/* reexport */ children),
cloneBlock: () => (/* reexport */ cloneBlock),
createBlock: () => (/* reexport */ createBlock),
createBlocksFromInnerBlocksTemplate: () => (/* reexport */ createBlocksFromInnerBlocksTemplate),
doBlocksMatchTemplate: () => (/* reexport */ doBlocksMatchTemplate),
findTransform: () => (/* reexport */ findTransform),
getBlockAttributes: () => (/* reexport */ getBlockAttributes),
getBlockContent: () => (/* reexport */ getBlockInnerHTML),
getBlockDefaultClassName: () => (/* reexport */ getBlockDefaultClassName),
getBlockFromExample: () => (/* reexport */ getBlockFromExample),
getBlockMenuDefaultClassName: () => (/* reexport */ getBlockMenuDefaultClassName),
getBlockSupport: () => (/* reexport */ getBlockSupport),
getBlockTransforms: () => (/* reexport */ getBlockTransforms),
getBlockType: () => (/* reexport */ getBlockType),
getBlockTypes: () => (/* reexport */ getBlockTypes),
getBlockVariations: () => (/* reexport */ getBlockVariations),
getCategories: () => (/* reexport */ categories_getCategories),
getChildBlockNames: () => (/* reexport */ getChildBlockNames),
getDefaultBlockName: () => (/* reexport */ getDefaultBlockName),
getFreeformContentHandlerName: () => (/* reexport */ getFreeformContentHandlerName),
getGroupingBlockName: () => (/* reexport */ getGroupingBlockName),
getPhrasingContentSchema: () => (/* reexport */ deprecatedGetPhrasingContentSchema),
getPossibleBlockTransformations: () => (/* reexport */ getPossibleBlockTransformations),
getSaveContent: () => (/* reexport */ getSaveContent),
getSaveElement: () => (/* reexport */ getSaveElement),
getUnregisteredTypeHandlerName: () => (/* reexport */ getUnregisteredTypeHandlerName),
hasBlockSupport: () => (/* reexport */ hasBlockSupport),
hasChildBlocks: () => (/* reexport */ hasChildBlocks),
hasChildBlocksWithInserterSupport: () => (/* reexport */ hasChildBlocksWithInserterSupport),
isReusableBlock: () => (/* reexport */ isReusableBlock),
isTemplatePart: () => (/* reexport */ isTemplatePart),
isUnmodifiedBlock: () => (/* reexport */ isUnmodifiedBlock),
isUnmodifiedDefaultBlock: () => (/* reexport */ isUnmodifiedDefaultBlock),
isValidBlockContent: () => (/* reexport */ isValidBlockContent),
isValidIcon: () => (/* reexport */ isValidIcon),
node: () => (/* reexport */ node),
normalizeIconObject: () => (/* reexport */ normalizeIconObject),
parse: () => (/* reexport */ parser_parse),
parseWithAttributeSchema: () => (/* reexport */ parseWithAttributeSchema),
pasteHandler: () => (/* reexport */ pasteHandler),
rawHandler: () => (/* reexport */ rawHandler),
registerBlockCollection: () => (/* reexport */ registerBlockCollection),
registerBlockStyle: () => (/* reexport */ registerBlockStyle),
registerBlockType: () => (/* reexport */ registerBlockType),
registerBlockVariation: () => (/* reexport */ registerBlockVariation),
serialize: () => (/* reexport */ serialize),
serializeRawBlock: () => (/* reexport */ serializeRawBlock),
setCategories: () => (/* reexport */ categories_setCategories),
setDefaultBlockName: () => (/* reexport */ setDefaultBlockName),
setFreeformContentHandlerName: () => (/* reexport */ setFreeformContentHandlerName),
setGroupingBlockName: () => (/* reexport */ setGroupingBlockName),
setUnregisteredTypeHandlerName: () => (/* reexport */ setUnregisteredTypeHandlerName),
store: () => (/* reexport */ store),
switchToBlockType: () => (/* reexport */ switchToBlockType),
synchronizeBlocksWithTemplate: () => (/* reexport */ synchronizeBlocksWithTemplate),
unregisterBlockStyle: () => (/* reexport */ unregisterBlockStyle),
unregisterBlockType: () => (/* reexport */ unregisterBlockType),
unregisterBlockVariation: () => (/* reexport */ unregisterBlockVariation),
unstable__bootstrapServerSideBlockDefinitions: () => (/* reexport */ unstable__bootstrapServerSideBlockDefinitions),
updateCategory: () => (/* reexport */ categories_updateCategory),
validateBlock: () => (/* reexport */ validateBlock),
withBlockContentContext: () => (/* reexport */ withBlockContentContext)
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/selectors.js
var selectors_namespaceObject = {};
__webpack_require__.r(selectors_namespaceObject);
__webpack_require__.d(selectors_namespaceObject, {
__experimentalHasContentRoleAttribute: () => (__experimentalHasContentRoleAttribute),
getActiveBlockVariation: () => (getActiveBlockVariation),
getBlockStyles: () => (getBlockStyles),
getBlockSupport: () => (selectors_getBlockSupport),
getBlockType: () => (selectors_getBlockType),
getBlockTypes: () => (selectors_getBlockTypes),
getBlockVariations: () => (selectors_getBlockVariations),
getCategories: () => (getCategories),
getChildBlockNames: () => (selectors_getChildBlockNames),
getCollections: () => (getCollections),
getDefaultBlockName: () => (selectors_getDefaultBlockName),
getDefaultBlockVariation: () => (getDefaultBlockVariation),
getFreeformFallbackBlockName: () => (getFreeformFallbackBlockName),
getGroupingBlockName: () => (selectors_getGroupingBlockName),
getUnregisteredFallbackBlockName: () => (getUnregisteredFallbackBlockName),
hasBlockSupport: () => (selectors_hasBlockSupport),
hasChildBlocks: () => (selectors_hasChildBlocks),
hasChildBlocksWithInserterSupport: () => (selectors_hasChildBlocksWithInserterSupport),
isMatchingSearchTerm: () => (isMatchingSearchTerm)
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-selectors.js
var private_selectors_namespaceObject = {};
__webpack_require__.r(private_selectors_namespaceObject);
__webpack_require__.d(private_selectors_namespaceObject, {
getAllBlockBindingsSources: () => (getAllBlockBindingsSources),
getBlockBindingsSource: () => (getBlockBindingsSource),
getBootstrappedBlockType: () => (getBootstrappedBlockType),
getSupportedStyles: () => (getSupportedStyles),
getUnprocessedBlockTypes: () => (getUnprocessedBlockTypes)
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/actions.js
var actions_namespaceObject = {};
__webpack_require__.r(actions_namespaceObject);
__webpack_require__.d(actions_namespaceObject, {
__experimentalReapplyBlockFilters: () => (__experimentalReapplyBlockFilters),
addBlockCollection: () => (addBlockCollection),
addBlockStyles: () => (addBlockStyles),
addBlockTypes: () => (addBlockTypes),
addBlockVariations: () => (addBlockVariations),
reapplyBlockTypeFilters: () => (reapplyBlockTypeFilters),
removeBlockCollection: () => (removeBlockCollection),
removeBlockStyles: () => (removeBlockStyles),
removeBlockTypes: () => (removeBlockTypes),
removeBlockVariations: () => (removeBlockVariations),
setCategories: () => (setCategories),
setDefaultBlockName: () => (actions_setDefaultBlockName),
setFreeformFallbackBlockName: () => (setFreeformFallbackBlockName),
setGroupingBlockName: () => (actions_setGroupingBlockName),
setUnregisteredFallbackBlockName: () => (setUnregisteredFallbackBlockName),
updateCategory: () => (updateCategory)
// NAMESPACE OBJECT: ./node_modules/@wordpress/blocks/build-module/store/private-actions.js
var private_actions_namespaceObject = {};
__webpack_require__.r(private_actions_namespaceObject);
__webpack_require__.d(private_actions_namespaceObject, {
addBootstrappedBlockType: () => (addBootstrappedBlockType),
addUnprocessedBlockType: () => (addUnprocessedBlockType),
registerBlockBindingsSource: () => (registerBlockBindingsSource)
;// CONCATENATED MODULE: external ["wp","data"]
const external_wp_data_namespaceObject = window["wp"]["data"];
;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.mjs
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");