{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap a6d4a1c144df15c2a102","webpack:///external \"quill\"","webpack:///./src/index.js","webpack:///./src/formats/hr.js"],"names":["register","MarkdownShortcuts","quill","options","ignoreTags","matches","name","pattern","action","text","selection","match","exec","size","length","setTimeout","formatLine","index","deleteText","lineStart","annotatedText","matchedText","startIndex","insertText","bold","italic","format","strike","code","getSelection","insertEmbed","sources","USER","SILENT","setSelection","search","hrefLink","start","slice","hrefText","on","delta","oldContents","source","i","ops","hasOwnProperty","insert","onSpace","onEnter","tagName","indexOf","getLine","line","offset","domNode","textContent","isValid","window","Quill","module","exports","BlockEmbed","import","HorizontalRule","blotName"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA,+C;;;;;;;;;;;qjBCAC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAED;;;;AACA;;;;;;;;AAEA,gBAAMA,QAAN,CAAe,oBAAf;;IAEMC,iB;AACJ,6BAAaC,KAAb,EAAoBC,OAApB,EAA6B;AAAA;;AAAA;;AAC3B,SAAKD,KAAL,GAAaA,KAAb;AACA,SAAKC,OAAL,GAAeA,OAAf;;AAEA,SAAKC,UAAL,GAAkB,CAAC,KAAD,CAAlB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eof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"quill\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"quill\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MarkdownShortcuts\"] = factory(require(\"quill\"));\n\telse\n\t\troot[\"MarkdownShortcuts\"] = factory(root[\"quill\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap a6d4a1c144df15c2a102","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"quill\"\n// module id = 0\n// module chunks = 0 1"," // Quill.js Plugin - Markdown Shortcuts\n // This is a module for the Quill.js WYSIWYG editor (https://quilljs.com/)\n // which converts text entered as markdown to rich text.\n //\n // v0.0.5\n //\n // Author: Patrick Lee (me@patricklee.nyc)\n //\n // (c) Copyright 2017 Patrick Lee (me@patricklee.nyc).\n // Permission is hereby granted, free of charge, to any person obtaining a copy\n // of this software and associated documentation files (the \"Software\"), to deal\n // in the Software without restriction, including without limitation the rights\n // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n // copies of the Software, and to permit persons to whom the Software is\n // furnished to do so, subject to the following conditions:\n //\n // The above copyright notice and this permission notice shall be included in\n // all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n // THE SOFTWARE.\n //\n\nimport Quill from 'quill'\nimport HorizontalRule from './formats/hr'\n\nQuill.register('formats/horizontal', HorizontalRule)\n\nclass MarkdownShortcuts {\n constructor (quill, options) {\n this.quill = quill\n this.options = options\n\n this.ignoreTags = ['PRE']\n this.matches = [\n {\n name: 'header',\n pattern: /^(#){1,6}\\s/g,\n action: (text, selection, pattern) => {\n var match = pattern.exec(text)\n if (!match) return\n const size = match[0].length\n // Need to defer this action https://github.com/quilljs/quill/issues/1134\n setTimeout(() => {\n this.quill.formatLine(selection.index, 0, 'header', size - 1)\n this.quill.deleteText(selection.index - size, size)\n }, 0)\n }\n },\n {\n name: 'blockquote',\n pattern: /^(>)\\s/g,\n action: (text, selection) => {\n // Need to defer this action https://github.com/quilljs/quill/issues/1134\n setTimeout(() => {\n this.quill.formatLine(selection.index, 1, 'blockquote', true)\n this.quill.deleteText(selection.index - 2, 2)\n }, 0)\n }\n },\n {\n name: 'code-block',\n pattern: /^`{3}(?:\\s|\\n)/g,\n action: (text, selection) => {\n // Need to defer this action https://github.com/quilljs/quill/issues/1134\n setTimeout(() => {\n this.quill.formatLine(selection.index, 1, 'code-block', true)\n this.quill.deleteText(selection.index - 4, 4)\n }, 0)\n }\n },\n {\n name: 'bolditalic',\n pattern: /(?:\\*|_){3}(.+?)(?:\\*|_){3}/g,\n action: (text, selection, pattern, lineStart) => {\n let match = pattern.exec(text)\n\n const annotatedText = match[0]\n const matchedText = match[1]\n const startIndex = lineStart + match.index\n\n if (text.match(/^([*_ \\n]+)$/g)) return\n\n setTimeout(() => {\n this.quill.deleteText(startIndex, annotatedText.length)\n this.quill.insertText(startIndex, matchedText, {bold: true, italic: true})\n this.quill.format('bold', false)\n }, 0)\n }\n },\n {\n name: 'bold',\n pattern: /(?:\\*|_){2}(.+?)(?:\\*|_){2}/g,\n action: (text, selection, pattern, lineStart) => {\n let match = pattern.exec(text)\n\n const annotatedText = match[0]\n const matchedText = match[1]\n const startIndex = lineStart + match.index\n\n if (text.match(/^([*_ \\n]+)$/g)) return\n\n setTimeout(() => {\n this.quill.deleteText(startIndex, annotatedText.length)\n this.quill.insertText(startIndex, matchedText, {bold: true})\n this.quill.format('bold', false)\n }, 0)\n }\n },\n {\n name: 'italic',\n pattern: /(?:\\*|_){1}(.+?)(?:\\*|_){1}/g,\n action: (text, selection, pattern, lineStart) => {\n let match = pattern.exec(text)\n\n const annotatedText = match[0]\n const matchedText = match[1]\n const startIndex = lineStart + match.index\n\n if (text.match(/^([*_ \\n]+)$/g)) return\n\n setTimeout(() => {\n this.quill.deleteText(startIndex, annotatedText.length)\n this.quill.insertText(startIndex, matchedText, {italic: true})\n this.quill.format('italic', false)\n }, 0)\n }\n },\n {\n name: 'strikethrough',\n pattern: /(?:~~)(.+?)(?:~~)/g,\n action: (text, selection, pattern, lineStart) => {\n let match = pattern.exec(text)\n\n const annotatedText = match[0]\n const matchedText = match[1]\n const startIndex = lineStart + match.index\n\n if (text.match(/^([*_ \\n]+)$/g)) return\n\n setTimeout(() => {\n this.quill.deleteText(startIndex, annotatedText.length)\n this.quill.insertText(startIndex, matchedText, {strike: true})\n this.quill.format('strike', false)\n }, 0)\n }\n },\n {\n name: 'code',\n pattern: /(?:`)(.+?)(?:`)/g,\n action: (text, selection, pattern, lineStart) => {\n let match = pattern.exec(text)\n\n const annotatedText = match[0]\n const matchedText = match[1]\n const startIndex = lineStart + match.index\n\n if (text.match(/^([*_ \\n]+)$/g)) return\n\n setTimeout(() => {\n this.quill.deleteText(startIndex, annotatedText.length)\n this.quill.insertText(startIndex, matchedText, {code: true})\n this.quill.format('code', false)\n this.quill.insertText(this.quill.getSelection(), ' ')\n }, 0)\n }\n },\n {\n name: 'hr',\n pattern: /^([-*]\\s?){3}/g,\n action: (text, selection) => {\n const startIndex = selection.index - text.length;\n setTimeout(() => {\n this.quill.deleteText(startIndex, text.length)\n\n this.quill.insertEmbed(startIndex + 1, 'hr', true, Quill.sources.USER);\n this.quill.insertText(startIndex + 2, \"\\n\", Quill.sources.SILENT);\n this.quill.setSelection(startIndex + 2, Quill.sources.SILENT);\n }, 0)\n }\n },\n {\n name: 'asterisk-ul',\n // Quill 1.3.5 already treat * as another trigger for bullet lists\n pattern: /^\\+\\s$/g,\n action: (text, selection, pattern) => {\n setTimeout(() => {\n this.quill.formatLine(selection.index, 1, 'list', 'unordered')\n this.quill.deleteText(selection.index - 2, 2)\n }, 0)\n }\n },\n {\n name: 'image',\n pattern: /(?:!\\[(.+?)\\])(?:\\((.+?)\\))/g,\n action: (text, selection, pattern) => {\n const startIndex = text.search(pattern)\n const matchedText = text.match(pattern)[0]\n // const hrefText = text.match(/(?:!\\[(.*?)\\])/g)[0]\n const hrefLink = text.match(/(?:\\((.*?)\\))/g)[0]\n const start = selection.index - matchedText.length - 1\n if (startIndex !== -1) {\n setTimeout(() => {\n this.quill.deleteText(start, matchedText.length)\n this.quill.insertEmbed(start, 'image', hrefLink.slice(1, hrefLink.length - 1))\n }, 0)\n }\n }\n },\n {\n name: 'link',\n pattern: /(?:\\[(.+?)\\])(?:\\((.+?)\\))/g,\n action: (text, selection, pattern) => {\n const startIndex = text.search(pattern)\n const matchedText = text.match(pattern)[0]\n const hrefText = text.match(/(?:\\[(.*?)\\])/g)[0]\n const hrefLink = text.match(/(?:\\((.*?)\\))/g)[0]\n const start = selection.index - matchedText.length - 1\n if (startIndex !== -1) {\n setTimeout(() => {\n this.quill.deleteText(start, matchedText.length)\n this.quill.insertText(start, hrefText.slice(1, hrefText.length - 1), 'link', hrefLink.slice(1, hrefLink.length - 1))\n }, 0)\n }\n }\n }\n ]\n\n // Handler that looks for insert deltas that match specific characters\n this.quill.on('text-change', (delta, oldContents, source) => {\n for (let i = 0; i < delta.ops.length; i++) {\n if (delta.ops[i].hasOwnProperty('insert')) {\n if (delta.ops[i].insert === ' ') {\n this.onSpace()\n } else if (delta.ops[i].insert === '\\n') {\n this.onEnter()\n }\n }\n }\n })\n }\n\n isValid (text, tagName) {\n return (\n typeof text !== 'undefined' &&\n text &&\n this.ignoreTags.indexOf(tagName) === -1\n )\n }\n\n onSpace () {\n const selection = this.quill.getSelection()\n if (!selection) return\n const [line, offset] = this.quill.getLine(selection.index)\n const text = line.domNode.textContent\n const lineStart = selection.index - offset\n if (this.isValid(text, line.domNode.tagName)) {\n for (let match of this.matches) {\n const matchedText = text.match(match.pattern)\n if (matchedText) {\n // We need to replace only matched text not the whole line\n match.action(text, selection, match.pattern, lineStart)\n return\n }\n }\n }\n }\n\n onEnter () {\n let selection = this.quill.getSelection()\n if (!selection) return\n const [line, offset] = this.quill.getLine(selection.index)\n const text = line.domNode.textContent + ' '\n const lineStart = selection.index - offset\n selection.length = selection.index++\n if (this.isValid(text, line.domNode.tagName)) {\n for (let match of this.matches) {\n const matchedText = text.match(match.pattern)\n if (matchedText) {\n match.action(text, selection, match.pattern, lineStart)\n return\n }\n }\n }\n }\n}\n\nif (window.Quill) {\n window.Quill.register('modules/markdownShortcuts', MarkdownShortcuts)\n}\n\nmodule.exports = MarkdownShortcuts\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","import Quill from 'quill';\n\nlet BlockEmbed = Quill.import('blots/block/embed');\n\nclass HorizontalRule extends BlockEmbed {}\nHorizontalRule.blotName = 'hr';\nHorizontalRule.tagName = 'hr';\n\nexport default HorizontalRule;\n\n\n// WEBPACK FOOTER //\n// ./src/formats/hr.js"],"sourceRoot":""}