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AAQ,MA8B3C,QAAQ,UAAY,CAAC,EAAI,EAAK,IACrB,IAAI,OAAQ,IAAM,EAAQ,KAAK,KAAW,KAmBnD,QAAQ,MAAQ,CAAC,EAAK,EAAK,IAAU,IAAM,QAAQ,KAAK,EAAK,EAAK,GAelE,QAAQ,MAAQ,CAAC,EAAK,EAAS,EAAK,IAC3B,QAAQ,KAAK,QAAQ,MAAM,EAAK,EAAS,GAAQ,GA2B1D,QAAQ,GAAK,CAAC,EAAM,EAAO,EAAS,IAAO,SAAS,EAAS,EAAlB,CAAsB,EAAO,GAoBxE,QAAQ,IAAM,GAAO,EAAM,UAAU,YAAgB,GAqBrD,QAAQ,IAAM,CAAC,EAAK,EAAO,KAElB,EAAM,SAAW,MAAS,YAAkB,GAcrD,QAAQ,OAAS,GAAO,EAAM,KAAK,MAAU,GAgB7C,QAAQ,KAAO,CAAC,EAAK,IACZ,GAAQ,EAAU,SAAW,UAAY,EAAO","file":"/npm/markdown-utils@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/markdown-utils@1.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","/*!\n * markdown-utils <https://github.com/jonschlinkert/markdown-utils>\n *\n * Copyright (c) 2014-2018, Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nconst isNumber = require('is-number');\nconst listitem = require('list-item');\n\n/**\n * Create a markdown-formatted blockquote.\n *\n * ```js\n * utils.blockquote('This is a blockquote');\n * //=> '> This is a blockquote'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.blockquote = str => str ? `> ${str}` : '';\n\n/**\n * Create a markdown-formatted `<code></code>` snippet.\n *\n * ```js\n * utils.code('const foo = bar;');\n * //=> '`const foo = bar;`'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.code = str => str ? `\\`${str}\\`` : '';\n\n/**\n * Create markdown-formatted deleted text: `~~text~~`.\n *\n * ```js\n * utils.del('text');\n * //=> '~~text~~'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.del = str => str ? `~~${str}~~` : '';\n\n/**\n * Create a markdown-formatted em.\n *\n * ```js\n * utils.em('This is emphasized');\n * //=> '_This is emphasized_'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.em = str => str ? `_${str}_` : '';\n\n/**\n * Create a markdown-formatted heading.\n *\n * ```js\n * utils.h(1, 'This is a heading');\n * //=> '# This is a heading'\n * ```\n * @param {String} `str`\n * @param {Number} `level`\n * @api public\n */\n\nexports.h = (level, str) => str ? exports.heading(str, level) : '';\n\n/**\n * Create a markdown-formatted h1 heading.\n *\n * ```js\n * utils.h1('This is a heading');\n * //=> '# This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h1 = str => str ? `# ${str}` : '';\n\n/**\n * Create a markdown-formatted h2 heading.\n *\n * ```js\n * utils.h2('This is a heading');\n * //=> '## This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h2 = str => str ? `## ${str}` : '';\n\n/**\n * Create a markdown-formatted h3 heading.\n *\n * ```js\n * utils.h3('This is a heading');\n * //=> '### This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h3 = str => str ? `### ${str}` : '';\n\n/**\n * Create a markdown-formatted h4 heading.\n *\n * ```js\n * utils.h4('This is a heading');\n * //=> '#### This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h4 = str => str ? `#### ${str}` : '';\n\n/**\n * Create a markdown-formatted h5 heading.\n *\n * ```js\n * utils.h5('This is a heading');\n * //=> '##### This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h5 = str => str ? `##### ${str}` : '';\n\n/**\n * Create a markdown-formatted h6 heading.\n *\n * ```js\n * utils.h6('This is a heading');\n * //=> '###### This is a heading'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.h6 = str => str ? `###### ${str}` : '';\n\n/**\n * Create a markdown-formatted heading.\n *\n * ```js\n * utils.heading('This is a heading', 1);\n * //=> '# This is a heading'\n * ```\n * @param {String} `str`\n * @param {Number} `level`\n * @api public\n */\n\nexports.heading = (str, level) => str ? exports[`h${(level || 1)}`](str) : '';\n\n/**\n * Create a markdown-formatted horizontal rule.\n *\n * ```js\n * utils.hr();\n * //=> '***'\n * ```\n * @param {String} `str` Alternate string to use. Default is `***` to avoid collision with `---` which is commonly used for front-matter.\n * @api public\n */\n\nexports.hr = (str = '***') => str;\n\n/**\n * Create a markdown-formatted link from the given values.\n *\n * ```js\n * utils.link('fs-utils', 'https://github.com/assemble/fs-utils', 'hover title');\n * //=> [fs-utils](https://github.com/assemble/fs-utils \"hover title\")\n * ```\n * @param {String} `anchor`\n * @param {String} `href`\n * @param {String} `title`\n * @api public\n */\n\nexports.link = (anchor, href, title) => {\n  return `[${anchor}](${href}${title ? ` \"${title}\"` : ''})`;\n};\n\n/**\n * Create a markdown-formatted anchor link from the given values.\n *\n * ```js\n * utils.anchor('embed', 'assemble/handlebars-helpers/lib/code.js', 25, 'v0.6.0');\n * //=> [embed](https://github.com/assemble/handlebars-helpers/blob/v0.6.0/lib/helpers/code.js#L25)\n * ```\n * @param {String} `anchor`\n * @param {String} `href`\n * @param {String} `title`\n * @api public\n */\n\nexports.anchor = (text, repo, line, branch) => {\n  return `[${text}](${format(repo, branch, line)})`;\n};\n\nfunction format(str, branch, line) {\n  let segs = str.split(/[\\\\\\/]/);\n  let repo = segs.slice(0, 2).join('/');\n  let rest = segs.slice(2).join('/');\n  if (isNumber(branch)) {\n    line = branch;\n    branch = 'master';\n  }\n  let res = 'https://github.com/';\n  res += `${repo}/blob/${branch}/${rest}`;\n  res += line ? `#L${line}` : '';\n  return res;\n}\n\n/**\n * Create a markdown-formatted reference link from the given values.\n *\n * ```js\n * utils.reference('template', 'https://github/jonschlinkert/template', 'Make stuff!');\n * //=> [template]: https://github/jonschlinkert/template \"Make stuff!\"\n * ```\n * @param {String} `id`\n * @param {String} `url`\n * @param {String} `title`\n * @api public\n */\n\nexports.reference = (id, url, title) => {\n  return `[${id}]: ${url}${title ? ` \"${title}\"` : ''}`;\n};\n\n/**\n * Create a markdown-formatted image from the given values.\n *\n * ```js\n * utils.image(alt, src);\n * //=> ![Build Status](https://travis-ci.org/jonschlinkert/template.svg)\n *\n * utils.image(alt, src, title);\n * //=> ![Build Status](https://travis-ci.org/jonschlinkert/template.svg \"This is title of image!\")\n * ```\n * @param {String} `alt`\n * @param {String} `src`\n * @param {String} `title`\n * @api public\n */\n\nexports.image = (alt, src, title) => '!' + exports.link(alt, src, title);\n\n/**\n * Create a markdown-formatted badge.\n *\n * ```js\n * utils.badge(alt, img_url, url);\n * //=> [![Build Status](https://travis-ci.org/jonschlinkert/template.svg)](https://travis-ci.org/jonschlinkert/template)\n * ```\n * @param {String} `alt`\n * @param {String} `img_url`\n * @param {String} `url`\n * @api public\n */\n\nexports.badge = (alt, img_url, url, title) => {\n  return exports.link(exports.image(alt, img_url, title), url);\n};\n\n/**\n * Returns a function to generate a plain-text/markdown list-item,\n * allowing options to be cached for subsequent calls.\n *\n * ```js\n * const li = listitem(options);\n *\n * li(0, 'Level 0 list item');\n * //=> '- Level 0 list item'\n *\n * li(1, 'Level 1 list item');\n * //=> '  * Level 1 list item'\n *\n * li(2, 'Level 2 list item');\n * //=> '    + Level 2 list item'\n * ```\n * @param {String} `options`\n *   @option {Boolean} [options] `nobullet` Pass true if you only want the list iten and identation, but no bullets.\n *   @option {String} [options] `indent` The amount of leading indentation to use. default is `  `.\n *   @option {String|Array} [options] `chars` If a string is passed, [fill-range] will be used to generate an array of bullets (visit [fill-range] to see all options.) Or directly pass an array of bullets, numbers, letters or other characters to use for each list item. Default `['-', '*', '+', '~']`\n * @param {Function} `fn` pass a function [fill-range] to modify the bullet for an item as it's generated.\n * @api public\n */\n\nexports.li = (char, level, options, fn) => listitem(options, fn)(level, char);\n\n/**\n * Create a markdown-formatted `<pre><code></code></pre>` snippet with or without lang.\n *\n * ```js\n * utils.pre('const foo = bar;');\n * ```\n * Results in:\n *\n * ```html\n * <pre>\n * const foo = bar;\n * </pre>\n * ```\n * @param {String} `str`\n * @param {String} `language`\n * @api public\n */\n\nexports.pre = str => str ? `<pre>\\n${str}\\n</pre>` : '';\n\n/**\n * Create a markdown-formatted code snippet with or without `lang`.\n *\n * ```js\n * utils.gfm('const foo = bar;', 'js');\n * ```\n * Results in:\n *\n * <pre>\n * ```js\n * const foo = bar;\n * ```\n * </pre>\n *\n * @param {String} `str`\n * @param {String} `language`\n * @api public\n */\n\nexports.gfm = (str, lang = '') => {\n  let fence = '```';\n  return str ? `${fence}${lang}\\n${str}\\n${fence}` : '';\n};\n\n/**\n * Create markdown-formatted bold text.\n *\n * ```js\n * utils.strong('This is bold');\n * //=> '**This is bold**'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.strong = str => str ? `**${str}**` : '';\n\n/**\n * Create a markdown-formatted todo item.\n *\n * ```js\n * utils.todo('this is a todo.');\n * //=> '- [ ] this is a todo'\n *\n * utils.todo('this is a completed todo.', true);\n * //=> '- [x] this is a todo'\n * ```\n * @param {String} `str`\n * @api public\n */\n\nexports.todo = (str, checked) => {\n  return str ? ((checked ? '- [x] ' : '- [ ] ') + str) : '';\n};\n"]}