{"version":3,"sources":["jsdelivr-header.js","/npm/towxml@3.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,GAAK,QAAQ,0BACf,MAAQ,QAAQ,iBAEpB,OAAO,QAAU,CAAC,EAAI,EAAK,KAEvB,IAAI,EACJ,OAFA,EAAS,GAAU,CAAC,EAEZ,GACJ,IAAK,WACD,EAAS,MAAM,GAAG,GAAK,GAC3B,MACA,IAAK,OACD,EAAS,MAAM,EAAI,GACvB,MACA,QACI,MAAM,IAAI,MAAM,sDAGxB,OAAO,CAAM","file":"/npm/towxml@3.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/towxml@3.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const md = require('./parse/markdown/index'),\n    parse = require('./parse/index')\n\nmodule.exports = (str,type,option)=>{\n    option = option || {};\n    let result;\n    switch (type) {\n        case 'markdown':\n            result = parse(md(str),option);\n        break;\n        case 'html':\n            result = parse(str,option);\n        break;\n        default:\n            throw new Error('Invalid type, only markdown and html are supported');\n        break;\n    };\n    return result;\n};"]}