Skip to content

Commit

Permalink
feat(markdown): bump to markdown-it 14
Browse files Browse the repository at this point in the history
BREAKING CHANGE: bump to markdown-it 14
  • Loading branch information
meteorlxy committed Dec 8, 2023
1 parent 1d24c2a commit 5abdcdf
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 89 deletions.
20 changes: 10 additions & 10 deletions packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@
"clean": "rimraf dist"
},
"dependencies": {
"@mdit-vue/plugin-component": "^1.0.0",
"@mdit-vue/plugin-frontmatter": "^1.0.0",
"@mdit-vue/plugin-headers": "^1.0.0",
"@mdit-vue/plugin-sfc": "^1.0.0",
"@mdit-vue/plugin-title": "^1.0.0",
"@mdit-vue/plugin-toc": "^1.0.0",
"@mdit-vue/shared": "^1.0.0",
"@mdit-vue/types": "^1.0.0",
"@mdit-vue/plugin-component": "^2.0.0",
"@mdit-vue/plugin-frontmatter": "^2.0.0",
"@mdit-vue/plugin-headers": "^2.0.0",
"@mdit-vue/plugin-sfc": "^2.0.0",
"@mdit-vue/plugin-title": "^2.0.0",
"@mdit-vue/plugin-toc": "^2.0.0",
"@mdit-vue/shared": "^2.0.0",
"@mdit-vue/types": "^2.0.0",
"@types/markdown-it": "^13.0.7",
"@types/markdown-it-emoji": "^2.0.4",
"@vuepress/shared": "workspace:*",
"@vuepress/utils": "workspace:*",
"markdown-it": "^13.0.2",
"markdown-it": "^14.0.0",
"markdown-it-anchor": "^8.6.7",
"markdown-it-emoji": "^2.0.2",
"markdown-it-emoji": "^3.0.0",
"mdurl": "^2.0.0"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/markdown/src/plugins/emojiPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import emojiPlugin from 'markdown-it-emoji'
import { full as emojiPlugin } from 'markdown-it-emoji'
import type { Options } from 'markdown-it-emoji'

export type EmojiPluginOptions = emojiPlugin.Options
export type EmojiPluginOptions = Options
export { emojiPlugin }
12 changes: 12 additions & 0 deletions packages/markdown/src/plugins/markdown-it-emoji.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// TODO: markdown-it-emoji v3 is not typed correctly for now
declare module 'markdown-it-emoji' {
import type emojiPlugin from '@types/markdown-it-emoji'

const bare: typeof emojiPlugin
const light: typeof emojiPlugin
const full: typeof emojiPlugin
type Options = emojiPlugin.Options

export { bare, light, full }
export type { Options }
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "rimraf dist"
},
"dependencies": {
"@mdit-vue/types": "^1.0.0",
"@mdit-vue/types": "^2.0.0",
"@vue/shared": "^3.3.11"
},
"publishConfig": {
Expand Down
154 changes: 78 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5abdcdf

Please sign in to comment.