➕ (markdown checkbox)
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
"date-fns": "^2.22.1",
|
"date-fns": "^2.22.1",
|
||||||
"markdown-it": "^12.0.6",
|
"markdown-it": "^12.0.6",
|
||||||
"markdown-it-block-embed": "^0.0.3",
|
"markdown-it-block-embed": "^0.0.3",
|
||||||
|
"markdown-it-checkbox": "^1.1.0",
|
||||||
"nanoid": "^3.1.23",
|
"nanoid": "^3.1.23",
|
||||||
"notyf": "^3.9.0",
|
"notyf": "^3.9.0",
|
||||||
"pinia": "^2.0.0-alpha.7",
|
"pinia": "^2.0.0-alpha.7",
|
||||||
@@ -62,4 +63,4 @@
|
|||||||
"typescript": "~4.2.4",
|
"typescript": "~4.2.4",
|
||||||
"vue-jest": "^5.0.0-0"
|
"vue-jest": "^5.0.0-0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
||||||
import markdownItClass from '@toycode/markdown-it-class'
|
import markdownItClass from '@toycode/markdown-it-class'
|
||||||
import blockEmbedPlugin from 'markdown-it-block-embed'
|
import blockEmbedPlugin from 'markdown-it-block-embed'
|
||||||
|
import markdownItCheckbox from 'markdown-it-checkbox'
|
||||||
|
|
||||||
const md = new MarkdownIt({
|
const md = new MarkdownIt({
|
||||||
typographer: true,
|
typographer: true,
|
||||||
@@ -20,6 +21,7 @@ const md = new MarkdownIt({
|
|||||||
width: '100%'
|
width: '100%'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.use(markdownItCheckbox)
|
||||||
|
|
||||||
export const useMarkdown = () => {
|
export const useMarkdown = () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
12
yarn.lock
12
yarn.lock
@@ -7823,6 +7823,13 @@ markdown-it-block-embed@^0.0.3:
|
|||||||
resolved "https://registry.yarnpkg.com/markdown-it-block-embed/-/markdown-it-block-embed-0.0.3.tgz#5eb08253f35c37b34c07eec2b9e275ee85eea906"
|
resolved "https://registry.yarnpkg.com/markdown-it-block-embed/-/markdown-it-block-embed-0.0.3.tgz#5eb08253f35c37b34c07eec2b9e275ee85eea906"
|
||||||
integrity sha1-XrCCU/NcN7NMB+7CueJ17oXuqQY=
|
integrity sha1-XrCCU/NcN7NMB+7CueJ17oXuqQY=
|
||||||
|
|
||||||
|
markdown-it-checkbox@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/markdown-it-checkbox/-/markdown-it-checkbox-1.1.0.tgz#20cff97f33d77d172f9dcf1bcfc92cecc5330fac"
|
||||||
|
integrity sha1-IM/5fzPXfRcvnc8bz8ks7MUzD6w=
|
||||||
|
dependencies:
|
||||||
|
underscore "^1.8.2"
|
||||||
|
|
||||||
markdown-it@^12.0.6:
|
markdown-it@^12.0.6:
|
||||||
version "12.0.6"
|
version "12.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.0.6.tgz#adcc8e5fe020af292ccbdf161fe84f1961516138"
|
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.0.6.tgz#adcc8e5fe020af292ccbdf161fe84f1961516138"
|
||||||
@@ -11390,6 +11397,11 @@ uglify-js@3.4.x:
|
|||||||
commander "~2.19.0"
|
commander "~2.19.0"
|
||||||
source-map "~0.6.1"
|
source-map "~0.6.1"
|
||||||
|
|
||||||
|
underscore@^1.8.2:
|
||||||
|
version "1.13.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1"
|
||||||
|
integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==
|
||||||
|
|
||||||
unicode-canonical-property-names-ecmascript@^1.0.4:
|
unicode-canonical-property-names-ecmascript@^1.0.4:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818"
|
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818"
|
||||||
|
|||||||
Reference in New Issue
Block a user