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+BAAgC,WAAW,EAAQ,mBAG9C,IAApB,EAAQ,SACR,EAAG,IAAI,QAAQ,uBAAwB,WAAW,EAAQ,UAK1D,EAAQ,cACR,EAAG,IAAI,QAAQ,wBAAyB,WAAW,EAAQ,cAC/D","file":"/npm/@digitalocean/do-markdownit@1.17.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@digitalocean/do-markdownit@1.17.2/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","/*\nCopyright 2024 DigitalOcean\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\n\nYou may obtain a copy of the License at\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n'use strict';\n\n/**\n * @module @digitalocean/do-markdownit\n */\n\nconst safeObject = require('./util/safe_object');\n\n/**\n * @typedef {Object} DoMarkdownItOptions\n * @property {false} [highlight] Disable highlight syntax.\n * @property {false|import('./rules/user_mention').UserMentionOptions} [user_mention] Disable user mentions, or set options for the feature.\n * @property {false|import('./rules/html_comment').HtmlCommentOptions} [html_comment] Disable HTML comment stripping, or set options for the feature.\n * @property {false} [image_caption] Disable image captions.\n * @property {false|import('./rules/table_wrapper').TableWrapperOptions} [table_wrapper] Disable table wrapper, or set options for the feature.\n * @property {import('./modifiers/collapsible_headings').CollapsibleHeadingOptions} [collapsible_headings] Enable collapsible headings, or set options for the feature.\n * @property {false|import('./rules/embeds/callout').CalloutOptions} [callout] Disable callout block syntax, or set options for the feature.\n * @property {false|import('./rules/embeds/rsvp_button').RsvpButtonOptions} [rsvp_button] Disable RSVP buttons, or set options for the feature.\n * @property {false|import('./rules/embeds/terminal_button').TerminalButtonOptions} [terminal_button] Disable terminal buttons, or set options for the feature.\n * @property {false|import('./rules/embeds/columns').ColumnsOptions} [columns] Disable columns, or set options for the feature.\n * @property {false} [details] Disable details.\n * @property {false} [glob] Disable glob embeds.\n * @property {false} [dns] Disable DNS lookup embeds.\n * @property {false} [asciinema] Disable Asciinema embeds.\n * @property {false} [codepen] Disable CodePen embeds.\n * @property {false} [glitch] Disable Glitch embeds.\n * @property {false} [caniuse] Disable CanIUse embeds.\n * @property {false} [youtube] Disable YouTube embeds.\n * @property {false} [wistia] Disable Wistia embeds.\n * @property {false} [vimeo] Disable Vimeo embeds.\n * @property {false} [twitter] Disable Twitter embeds.\n * @property {false} [instagram] Disable Instagram embeds.\n * @property {false} [slideshow] Disable Slideshow embeds.\n * @property {false} [compare] Disable Image Compare embeds.\n * @property {false} [underline] Disable underline syntax.\n * @property {false|import('./modifiers/fence_label').FenceLabelOptions} [fence_label] Disable fence labels, or set options for the feature.\n * @property {false|import('./modifiers/fence_secondary_label').FenceSecondaryLabelOptions} [fence_secondary_label] Disable fence secondary labels, or set options for the feature.\n * @property {false|import('./modifiers/fence_environment').FenceEnvironmentOptions} [fence_environment] Disable fence environments, or set options for the feature.\n * @property {false|import('./modifiers/fence_prefix').FencePrefixOptions} [fence_prefix] Disable fence prefixes, or set options for the feature.\n * @property {false} [fence_pre_attrs] Disable fence pre attributes.\n * @property {false|import('./modifiers/fence_classes').FenceClassesOptions} [fence_classes] Disable fence class filtering, or set options for the feature.\n * @property {false|import('./modifiers/heading_id').HeadingIdOptions} [heading_id] Disable Ids on headings, or set options for the feature.\n * @property {false|import('./modifiers/image_settings').ImageSettingsOptions} [image_settings] Disable image settings syntax, or set options for the feature.\n * @property {false|import('./modifiers/prismjs').PrismJsOptions} [prismjs] Disable Prism highlighting, or set options for the feature.\n * @property {import('./modifiers/link_attributes').LinkAttributesOptions} [link_attributes] Enable custom link attributes by setting options for the feature.\n * @property {import('./rules/limit_tokens').LimitTokensOptions} [limit_tokens] Enable token filtering by setting options for the feature.\n */\n\n/**\n * Inject all parts of the DigitalOcean community MarkdownIt plugin.\n *\n * @type {import('markdown-it').PluginWithOptions<DoMarkdownItOptions>}\n */\nmodule.exports = (md, options) => {\n    // Get the correct options\n    const optsObj = safeObject(options);\n\n    // Register rules\n\n    if (optsObj.highlight !== false) {\n        md.use(require('./rules/highlight'), safeObject(optsObj.highlight));\n    }\n\n    if (optsObj.user_mention !== false) {\n        md.use(require('./rules/user_mention'), safeObject(optsObj.user_mention));\n    }\n\n    if (optsObj.html_comment !== false) {\n        md.use(require('./rules/html_comment'), safeObject(optsObj.html_comment));\n    }\n\n    if (optsObj.image_caption !== false) {\n        md.use(require('./rules/image_caption'), safeObject(optsObj.image_caption));\n    }\n\n    if (optsObj.table_wrapper !== false) {\n        md.use(require('./rules/table_wrapper'), safeObject(optsObj.table_wrapper));\n    }\n\n    if (optsObj.collapsible_headings) {\n        md.use(require('./rules/collapsible_heading'), safeObject(optsObj.collapsible_headings));\n    }\n\n    // Register embeds\n\n    if (optsObj.callout !== false) {\n        md.use(require('./rules/embeds/callout'), safeObject(optsObj.callout));\n    }\n\n    if (optsObj.rsvp_button !== false) {\n        md.use(require('./rules/embeds/rsvp_button'), safeObject(optsObj.rsvp_button));\n    }\n\n    if (optsObj.terminal_button !== false) {\n        md.use(require('./rules/embeds/terminal_button'), safeObject(optsObj.terminal_button));\n    }\n\n    if (optsObj.columns !== false) {\n        md.use(require('./rules/embeds/columns'), safeObject(optsObj.columns));\n    }\n\n    if (optsObj.details !== false) {\n        md.use(require('./rules/embeds/details'), safeObject(optsObj.details));\n    }\n\n    if (optsObj.glob !== false) {\n        md.use(require('./rules/embeds/glob'), safeObject(optsObj.glob));\n    }\n\n    if (optsObj.dns !== false) {\n        md.use(require('./rules/embeds/dns'), safeObject(optsObj.dns));\n    }\n\n    if (optsObj.asciinema !== false) {\n        md.use(require('./rules/embeds/asciinema'), safeObject(optsObj.asciinema));\n    }\n\n    if (optsObj.codepen !== false) {\n        md.use(require('./rules/embeds/codepen'), safeObject(optsObj.codepen));\n    }\n\n    if (optsObj.glitch !== false) {\n        md.use(require('./rules/embeds/glitch'), safeObject(optsObj.glitch));\n    }\n\n    if (optsObj.caniuse !== false) {\n        md.use(require('./rules/embeds/caniuse'), safeObject(optsObj.caniuse));\n    }\n\n    if (optsObj.youtube !== false) {\n        md.use(require('./rules/embeds/youtube'), safeObject(optsObj.youtube));\n    }\n\n    if (optsObj.wistia !== false) {\n        md.use(require('./rules/embeds/wistia'), safeObject(optsObj.wistia));\n    }\n\n    if (optsObj.vimeo !== false) {\n        md.use(require('./rules/embeds/vimeo'), safeObject(optsObj.vimeo));\n    }\n\n    if (optsObj.twitter !== false) {\n        md.use(require('./rules/embeds/twitter'), safeObject(optsObj.twitter));\n    }\n\n    if (optsObj.instagram !== false) {\n        md.use(require('./rules/embeds/instagram'), safeObject(optsObj.instagram));\n    }\n\n    if (optsObj.slideshow !== false) {\n        md.use(require('./rules/embeds/slideshow'), safeObject(optsObj.slideshow));\n    }\n\n    if (optsObj.compare !== false) {\n        md.use(require('./rules/embeds/compare'), safeObject(optsObj.compare));\n    }\n\n    // Register modifiers\n\n    if (optsObj.underline !== false) {\n        md.use(require('./modifiers/underline'), safeObject(optsObj.underline));\n    }\n\n    if (optsObj.fence_label !== false) {\n        md.use(require('./modifiers/fence_label'), safeObject(optsObj.fence_label));\n    }\n\n    if (optsObj.fence_secondary_label !== false) {\n        md.use(require('./modifiers/fence_secondary_label'), safeObject(optsObj.fence_secondary_label));\n    }\n\n    if (optsObj.fence_environment !== false) {\n        md.use(require('./modifiers/fence_environment'), safeObject(optsObj.fence_environment));\n    }\n\n    if (optsObj.fence_prefix !== false) {\n        md.use(require('./modifiers/fence_prefix'), safeObject(optsObj.fence_prefix));\n    }\n\n    if (optsObj.fence_pre_attrs !== false) {\n        md.use(require('./modifiers/fence_pre_attrs'), safeObject(optsObj.fence_pre_attrs));\n    }\n\n    if (optsObj.fence_classes !== false) {\n        md.use(require('./modifiers/fence_classes'), safeObject(optsObj.fence_classes));\n    }\n\n    if (optsObj.heading_id !== false) {\n        md.use(require('./modifiers/heading_id'), safeObject(optsObj.heading_id));\n    }\n\n    if (optsObj.image_settings !== false) {\n        md.use(require('./modifiers/image_settings'), safeObject(optsObj.image_settings));\n    }\n\n    if (optsObj.link_attributes) {\n        md.use(require('./modifiers/link_attributes'), safeObject(optsObj.link_attributes));\n    }\n\n    if (optsObj.prismjs !== false) {\n        md.use(require('./modifiers/prismjs'), safeObject(optsObj.prismjs));\n    }\n\n    // Limiting the token streams should be the last step\n\n    if (optsObj.limit_tokens) {\n        md.use(require('./rules/limit_tokens'), safeObject(optsObj.limit_tokens));\n    }\n};\n"]}