{"version":3,"sources":["jsdelivr-header.js","/npm/marked-custom-heading-id@2.0.17/lib/index.umd.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCNA,SAAW,EAAQ,GACE,iBAAZ,SAA0C,oBAAX,OAAyB,OAAO,QAAU,IAC9D,mBAAX,QAAyB,OAAO,IAAM,OAAO,IACnD,EAA+B,oBAAf,WAA6B,WAAa,GAAU,MAAa,sBAAwB,GAC3G,CAJD,CAIG,MAAM,WAAe,aAwBtB,OAtBA,WACE,MAAO,CACL,gBAAgB,EAChB,SAAU,CACR,OAAA,CAAQ,EAAM,GAEQ,iBAAT,IACT,EAAQ,EAAK,MACb,EAAO,EAAK,MAEd,MAAM,EAAiB,sCACjB,EAAQ,EAAK,MAAM,GACzB,QAAK,GAIE,KAAK,SAAa,EAAM,OAAO,EAAK,QAAQ,EAAgB,SAAS,MAC9E,GAGN,CAID","file":"/npm/marked-custom-heading-id@2.0.17/lib/index.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/marked-custom-heading-id@2.0.17/lib/index.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.markedCustomHeadingId = factory());\n})(this, (function () { 'use strict';\n\n  function customHeadingId() {\n    return {\n      useNewRenderer: true,\n      renderer: {\n        heading(text, depth) {\n          /* istanbul ignore next */\n          if (typeof text !== 'string') {\n            depth = text.depth;\n            text = text.text;\n          }\n          const headingIdRegex = /(?: +|^)\\{#([a-z][\\w-]*)\\}(?: +|$)/i;\n          const hasId = text.match(headingIdRegex);\n          if (!hasId) {\n            // fallback to original heading renderer\n            return false;\n          }\n          return `<h${depth} id=\"${hasId[1]}\">${text.replace(headingIdRegex, '')}</h${depth}>\\n`;\n        },\n      },\n    };\n  }\n\n  return customHeadingId;\n\n}));\n"]}