Gathering detailed insights and metrics for quilljs-markdown
Gathering detailed insights and metrics for quilljs-markdown
Gathering detailed insights and metrics for quilljs-markdown
Gathering detailed insights and metrics for quilljs-markdown
npm install quilljs-markdown
1.2.0 Support Safari browser and small bug fixed.
Published on 21 Jul 2022
1.1.11 Fix bug - does not working markdown syntax for link
Published on 08 May 2022
1.1.10 Add destroy() method to disable markdown
Published on 12 Dec 2021
1.1.9 Bug fixed for support safari browser
Published on 02 Dec 2021
1.1.8 Improving code block and Fixed bold syntax below block element.
Published on 19 Nov 2021
1.1.7 Fix incorrect for inline code section
Published on 27 Oct 2021
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
179 Stars
113 Commits
26 Forks
3 Watching
1 Branches
6 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
JavaScript (96.55%)
SCSS (3.45%)
Cumulative downloads
Total Downloads
Last day
25.9%
2,615
Compared to previous day
Last week
-2.5%
11,624
Compared to previous week
Last month
13.9%
50,697
Compared to previous month
Last year
-17.1%
443,551
Compared to previous year
QuillJS Markdown shortcut Extension.
Wrote Library with ES6 and Standard Javascript Codestyle.
npm i quilljs-markdown
or
<script src="https://cdn.jsdelivr.net/npm/quilljs-markdown@latest/dist/quilljs-markdown.js"></script>
1import Quill from 'quill' 2import QuillMarkdown from 'quilljs-markdown' 3import 'quilljs-markdown/dist/quilljs-markdown-common-style.css' // recommend import css, @option improve common style 4 5const options = { 6 theme: 'snow' 7} 8 9document.addEventListener('DOMContentLoaded', () => { 10 const editor = new Quill('#editor', options) 11 const markdownOptions = { 12 /** 13 ignoreTags: [ 'pre', 'strikethrough'], // @option - if you need to ignore some tags. 14 15 tags: { // @option if you need to change for trigger pattern for some tags. 16 blockquote: { 17 pattern: /^(\|){1,6}\s/g, 18 }, 19 bold: { 20 pattern: /^(\|){1,6}\s/g, 21 }, 22 italic: { 23 pattern: /(\_){1}(.+?)(?:\1){1}/g, 24 }, 25 }, 26 */ 27 }; 28 29 // markdown is enabled 30 const quillMarkdown = new QuillMarkdown(editor, markdownOptions) 31 32 // markdown is now disabled 33 // quillMarkdown.destroy() 34 35}) 36 37
Javascript 2 (Enable to Standard style for Quilljs)
1import Quill from 'quill' 2import QuillMarkdown from '../src/app' 3 4const toolbarOptions = [ 5 ['bold', 'italic', 'underline', 'strike'], 6 [ 'link', 'image'], // add's image support 7]; 8 9const options = { 10 theme: 'snow', 11 modules: { 12 toolbar: toolbarOptions, 13 QuillMarkdown: { 14 ignoreTags: [ 'pre', 'strikethrough'], // @option - if you need to ignore some tags. 15 16 tags: { // @option if you need to change for trigger pattern for some tags. 17 blockquote: { 18 pattern: /^(\|){1,6}\s/g, 19 }, 20 bold: { 21 pattern: /^(\|){1,6}\s/g, 22 }, 23 italic: { 24 pattern: /(\_){1}(.+?)(?:\1){1}/g, 25 }, 26 }, 27 } 28 } 29} 30 31document.addEventListener('DOMContentLoaded', () => { 32 console.log('HOHO') 33 34 Quill.register('modules/QuillMarkdown', QuillMarkdown, true) 35 36 new Quill('#editor', options) 37}) 38
HTML
1 2<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script> 3<script src="https://cdn.jsdelivr.net/npm/quilljs-markdown@latest/dist/quilljs-markdown.js"><script> 4<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet"> 5<link href="https://cdn.jsdelivr.net/npm/quilljs-markdown@latest/dist/quilljs-markdown-common-style.css" rel="stylesheet" > 6 7<script> 8 document.addEventListener('DOMContentLoaded', () => { 9 var quill = new Quill('#editor', { 10 theme: 'snow' 11 }); 12 var markdownOptions = { 13 ignoreTags: [ 'strikethrough'], // @option - if you need to ignore some tags. 14 15 tags: { // @option if you need to change for trigger pattern for some tags. 16 blockquote: { 17 pattern: /^(\|){1,6}\s/g, 18 }, 19 bold: { 20 pattern: /^(\|){1,6}\s/g, 21 }, 22 italic: { 23 pattern: /(\_){1}(.+?)(?:\1){1}/g, 24 }, 25 }, 26 }; 27 new QuillMarkdown(editor, markdownOptions) 28 }) 29<script> 30
Call destroy()
to remove the event listener and disable markdown support:
const quillMarkdown = new QuillMarkdown(editor, markdownOptions)
// markdown is enabled
quillMarkdown.destroy()
// markdown is now disabled
To re-enable support, create a new instance.
Pasting the Markdown form,
Shows the corresponding Markdown result.
1# MyTitle 2## MyTitle 3### MyTitle 4#### MyTitle 5##### MyTitle
1> blockquote text
1**Bold Text** 2__Bold Text__
1*Italics Text* 2_Italics Text_
1[link text](https://link_url)
1`inline code block`
```
code block
```
11. one 22. two 33. three 4 5* one 6* two 7* three
1~~Strikethrough~~
1[ ] checkbox 2[x] checked
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/15 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
52 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More