mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
!feat: add markdown tasklist support for vitepress with markdown-it-tasklists
This commit is contained in:
parent
95cc221e11
commit
539b47c8cd
@ -1,5 +1,6 @@
|
||||
import type { MarkdownOptions } from 'vitepress'
|
||||
import mdkatex from '@andatoshiki/markdown-it-katex'
|
||||
import mdTasklist from 'markdown-it-task-lists'
|
||||
|
||||
export const markdown: MarkdownOptions = {
|
||||
theme: {
|
||||
@ -9,6 +10,7 @@ export const markdown: MarkdownOptions = {
|
||||
lineNumbers: true,
|
||||
config: md => {
|
||||
// use more markdown-it plugins!
|
||||
md.use(mdkatex)
|
||||
md.use(mdkatex),
|
||||
md.use(mdTasklist)
|
||||
},
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"conventional-changelog-cli": "^2.2.2",
|
||||
"husky": "^8.0.3",
|
||||
"markdown-it-task-lists": "^2.1.1",
|
||||
"medium-zoom": "^1.0.8",
|
||||
"mermaid": "^9.3.0",
|
||||
"prettier": "2.8.4",
|
||||
|
||||
@ -2167,6 +2167,11 @@ map-obj@^4.0.0:
|
||||
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a"
|
||||
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==
|
||||
|
||||
markdown-it-task-lists@^2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.npmjs.org/markdown-it-task-lists/-/markdown-it-task-lists-2.1.1.tgz#f68f4d2ac2bad5a2c373ba93081a1a6848417088"
|
||||
integrity sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==
|
||||
|
||||
markdown-it@^13.0.1:
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-13.0.1.tgz#c6ecc431cacf1a5da531423fc6a42807814af430"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user