From 0ea0e29024469e6443bc050e48e36fa531b25da9 Mon Sep 17 00:00:00 2001 From: jfhr Date: Fri, 10 Dec 2021 14:37:24 +0100 Subject: [PATCH] Add destroy() method to disable markdown support on-the-fly --- dist/demojs.62ca54a7.js | 21084 ---------------- dist/demojs.62ca54a7.js.map | 1 - dist/index.html | 293 - dist/index.js | 392 - dist/index.js.map | 1 - ...quilljs-markdown-common-style.c041a5ac.css | 1643 -- ...ljs-markdown-common-style.c041a5ac.css.map | 1 - .../quilljs-markdown-common-style.c041a5ac.js | 397 - ...lljs-markdown-common-style.c041a5ac.js.map | 1 - dist/quilljs-markdown.js | 2 +- dist/quilljs-markdown.js.map | 2 +- docs/bundle/demojs.js | 2 +- docs/bundle/demojs.js.map | 2 +- src/app.js | 7 +- 14 files changed, 10 insertions(+), 23818 deletions(-) delete mode 100644 dist/demojs.62ca54a7.js delete mode 100644 dist/demojs.62ca54a7.js.map delete mode 100644 dist/index.html delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 dist/quilljs-markdown-common-style.c041a5ac.css delete mode 100644 dist/quilljs-markdown-common-style.c041a5ac.css.map delete mode 100644 dist/quilljs-markdown-common-style.c041a5ac.js delete mode 100644 dist/quilljs-markdown-common-style.c041a5ac.js.map diff --git a/dist/demojs.62ca54a7.js b/dist/demojs.62ca54a7.js deleted file mode 100644 index 5f866fb..0000000 --- a/dist/demojs.62ca54a7.js +++ /dev/null @@ -1,21084 +0,0 @@ -// modules are defined as an array -// [ module function, map of requires ] -// -// map of requires is short require name -> numeric require -// -// anything defined in a previous bundle is accessed via the -// orig method which is the require for previous bundles -parcelRequire = (function (modules, cache, entry, globalName) { - // Save the require from previous bundle to this closure if any - var previousRequire = typeof parcelRequire === 'function' && parcelRequire; - var nodeRequire = typeof require === 'function' && require; - - function newRequire(name, jumped) { - if (!cache[name]) { - if (!modules[name]) { - // if we cannot find the module within our internal map or - // cache jump to the current global require ie. the last bundle - // that was added to the page. - var currentRequire = typeof parcelRequire === 'function' && parcelRequire; - if (!jumped && currentRequire) { - return currentRequire(name, true); - } - - // If there are other bundles on this page the require from the - // previous one is saved to 'previousRequire'. Repeat this as - // many times as there are bundles until the module is found or - // we exhaust the require chain. - if (previousRequire) { - return previousRequire(name, true); - } - - // Try the node require function if it exists. - if (nodeRequire && typeof name === 'string') { - return nodeRequire(name); - } - - var err = new Error('Cannot find module \'' + name + '\''); - err.code = 'MODULE_NOT_FOUND'; - throw err; - } - - localRequire.resolve = resolve; - localRequire.cache = {}; - - var module = cache[name] = new newRequire.Module(name); - - modules[name][0].call(module.exports, localRequire, module, module.exports, this); - } - - return cache[name].exports; - - function localRequire(x){ - return newRequire(localRequire.resolve(x)); - } - - function resolve(x){ - return modules[name][1][x] || x; - } - } - - function Module(moduleName) { - this.id = moduleName; - this.bundle = newRequire; - this.exports = {}; - } - - newRequire.isParcelRequire = true; - newRequire.Module = Module; - newRequire.modules = modules; - newRequire.cache = cache; - newRequire.parent = previousRequire; - newRequire.register = function (id, exports) { - modules[id] = [function (require, module) { - module.exports = exports; - }, {}]; - }; - - var error; - for (var i = 0; i < entry.length; i++) { - try { - newRequire(entry[i]); - } catch (e) { - // Save first error but execute all entries - if (!error) { - error = e; - } - } - } - - if (entry.length) { - // Expose entry point to Node, AMD or browser globals - // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js - var mainExports = newRequire(entry[entry.length - 1]); - - // CommonJS - if (typeof exports === "object" && typeof module !== "undefined") { - module.exports = mainExports; - - // RequireJS - } else if (typeof define === "function" && define.amd) { - define(function () { - return mainExports; - }); - - // - - - - - - - - - - - - - - - - - -
-

- Markdown extension for Quilljs -

-
- GitHub release (latest SemVer) - GitHub license - npm version -
-
-

- QuillJS is rich text editor based on ES6+ -

-

- This module support to markdown for QuillJS Editor. -

-

- Github repository is here -

-
-

- Playground -

-
-

Quill Markdown

-

You can test it, here

-
-
-
-

How to use

-
-
-

Javascript

-
-
- -
-

HTML

-
-
- -
-

Feature

-
-
-
-

Paste support for Markdown format. (copy and paste from below code)

-

You can paste with `Ctrl + Shift + v` from copies.

-
-
- # paste for markdown
-
- You can paste with `Ctrl + Shift + v` from copies.
-
- 1. 1 DEPTH
- 2. 2 DEPTH
-  1. 2 SUB-DEPTH
-  2. 2 SUB-DEPTH
-
- string to **strong** and string to `hightlight`
-
- ``` - -
- # HEADER
-
- This is ~~code-block~~
-
- TODO
-
- [x] Sleep
- [ ] More sleep
-
-
- ```
-

- [Repository Link](https://cloverhearts.github.io/quilljs-markdown/) -
-
- ## TODO
- [x] bug fix.
- [ ] play with friends.
-
- Have a ~~super~~ nice day -
-
-
-
-
-
-

Heading

-
header, h1, h2, h3, h4, h5, h6
-
-
- # MyTitle
- ## MyTitle
- ### MyTitle
- #### MyTitle
- ##### MyTitle
-
-
-
-
-

Blockquote

-
blockquote
-
-
- > blockquote text
-
-
-
-
-

bold

-
bold
-
-
- **Bold Text**
- or
- __Bold Text__
-
-
-
-
-

Italics

-
italics
-
-
- *Italics Text*
- or
- _Italics Text_
-
-
-
-
-

Link

-
link
-
-
- [Go to Repository](https://github.com/cloverhearts/quilljs-markdown) -
-
-
-
-

inline code

-
code
-
-
- `inline code block` -
-
-
-
-

Code block

-
pre
-
-
- ```
- Code block
- ```
-
-
-
-
-

List

-
ol, ul
-
-
- 1. one
- 2. two
- 3. three
-
- * one
- * two
- * three
-
-
-
-
-

Strikethrough

-
strikethrough
-
-
-
- ~~Strikethrough Message~~ -
-
-
-
-
-

Checkbox

-
checkbox
-
-
-
- [ ] checkbox
- [x] checked
-
-
-
-
-
- - \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 499200b..0000000 --- a/dist/index.js +++ /dev/null @@ -1,392 +0,0 @@ -// modules are defined as an array -// [ module function, map of requires ] -// -// map of requires is short require name -> numeric require -// -// anything defined in a previous bundle is accessed via the -// orig method which is the require for previous bundles -parcelRequire = (function (modules, cache, entry, globalName) { - // Save the require from previous bundle to this closure if any - var previousRequire = typeof parcelRequire === 'function' && parcelRequire; - var nodeRequire = typeof require === 'function' && require; - - function newRequire(name, jumped) { - if (!cache[name]) { - if (!modules[name]) { - // if we cannot find the module within our internal map or - // cache jump to the current global require ie. the last bundle - // that was added to the page. - var currentRequire = typeof parcelRequire === 'function' && parcelRequire; - if (!jumped && currentRequire) { - return currentRequire(name, true); - } - - // If there are other bundles on this page the require from the - // previous one is saved to 'previousRequire'. Repeat this as - // many times as there are bundles until the module is found or - // we exhaust the require chain. - if (previousRequire) { - return previousRequire(name, true); - } - - // Try the node require function if it exists. - if (nodeRequire && typeof name === 'string') { - return nodeRequire(name); - } - - var err = new Error('Cannot find module \'' + name + '\''); - err.code = 'MODULE_NOT_FOUND'; - throw err; - } - - localRequire.resolve = resolve; - localRequire.cache = {}; - - var module = cache[name] = new newRequire.Module(name); - - modules[name][0].call(module.exports, localRequire, module, module.exports, this); - } - - return cache[name].exports; - - function localRequire(x){ - return newRequire(localRequire.resolve(x)); - } - - function resolve(x){ - return modules[name][1][x] || x; - } - } - - function Module(moduleName) { - this.id = moduleName; - this.bundle = newRequire; - this.exports = {}; - } - - newRequire.isParcelRequire = true; - newRequire.Module = Module; - newRequire.modules = modules; - newRequire.cache = cache; - newRequire.parent = previousRequire; - newRequire.register = function (id, exports) { - modules[id] = [function (require, module) { - module.exports = exports; - }, {}]; - }; - - var error; - for (var i = 0; i < entry.length; i++) { - try { - newRequire(entry[i]); - } catch (e) { - // Save first error but execute all entries - if (!error) { - error = e; - } - } - } - - if (entry.length) { - // Expose entry point to Node, AMD or browser globals - // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js - var mainExports = newRequire(entry[entry.length - 1]); - - // CommonJS - if (typeof exports === "object" && typeof module !== "undefined") { - module.exports = mainExports; - - // RequireJS - } else if (typeof define === "function" && define.amd) { - define(function () { - return mainExports; - }); - - //