Skip to content

Commit fbc4b4e

Browse files
refactor(markdown): compat with markdown-it-anchor 8.3.1+ (vuepress#482)
Co-authored-by: meteorlxy <meteor.lxy@foxmail.com>
1 parent c8b42a3 commit fbc4b4e

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

packages/@vuepress/markdown/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@vuepress/shared": "2.0.0-beta.25",
3131
"@vuepress/utils": "2.0.0-beta.25",
3232
"markdown-it": "^12.2.0",
33-
"markdown-it-anchor": "^8.3.0",
33+
"markdown-it-anchor": "^8.4.1",
3434
"markdown-it-emoji": "^2.0.0",
3535
"mdurl": "^1.0.1"
3636
},
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as anchorPlugin from 'markdown-it-anchor'
2-
import type { AnchorOptions } from 'markdown-it-anchor'
1+
import anchorPlugin from 'markdown-it-anchor'
32

4-
export type AnchorPluginOptions = AnchorOptions
3+
export type AnchorPluginOptions = anchorPlugin.AnchorOptions
54
export { anchorPlugin }

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -7407,10 +7407,10 @@ map-obj@^4.0.0:
74077407
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.2.1.tgz#e4ea399dbc979ae735c83c863dd31bdf364277b7"
74087408
integrity sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==
74097409

7410-
markdown-it-anchor@^8.3.0:
7411-
version "8.3.0"
7412-
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.3.0.tgz#9e1a71766f778c382e5b6d3808d8c4d3a3b4ae30"
7413-
integrity sha512-YXMxKqZDH/MM/sFBZe+JQ/XFa7i8mIWZYkcY7jCGmpNNqcj2iS9Wyxy5devkUoL14NJOUt5IleD99D8StAwkXg==
7410+
markdown-it-anchor@^8.3.1:
7411+
version "8.4.1"
7412+
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.4.1.tgz#29e560593f5edb80b25fdab8b23f93ef8a91b31e"
7413+
integrity sha512-sLODeRetZ/61KkKLJElaU3NuU2z7MhXf12Ml1WJMSdwpngeofneCRF+JBbat8HiSqhniOMuTemXMrsI7hA6XyA==
74147414

74157415
markdown-it-container@^3.0.0:
74167416
version "3.0.0"

0 commit comments

Comments
 (0)