Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed May 22, 2024
1 parent 4b276a6 commit 7a94405
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/markdown/src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const createMarkdown = ({
// process code fence
if (code) {
logger.warn(
`\`markdown.code\` option is deprecated, use '@vuepress/plugin-shiki' or '@vuepress/plugin-prismjs' instead.\n See https://v2.vuepress.vuejs.org/reference/config.html#markdown-code`,
`\`markdown.code\` option has been removed, please use '@vuepress/plugin-shiki' or '@vuepress/plugin-prismjs' instead.\n See https://v2.vuepress.vuejs.org/reference/config.html#markdown-code`,
)
}

Expand Down
1 change: 0 additions & 1 deletion packages/markdown/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export {
linksPlugin,
type LinksPluginOptions,
} from './plugins/linksPlugin/linksPlugin.js'

export {
vPrePlugin,
type VPrePluginOptions,
Expand Down
3 changes: 3 additions & 0 deletions packages/markdown/src/plugins/vPrePlugin/vPrePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export interface VPrePluginOptions {
inline?: boolean
}

/**
* v-pre plugin
*/
export const vPrePlugin: PluginWithOptions<VPrePluginOptions> = (
md,
{ inline = true, block = true }: VPrePluginOptions = {},
Expand Down
12 changes: 5 additions & 7 deletions packages/markdown/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ export type { MarkdownSfcBlocks }
export interface MarkdownOptions extends Options {
anchor?: false | AnchorPluginOptions
assets?: false | AssetsPluginOptions

/**
* @deprecated This feature has been deprecated. Please use `@vuepress/plugin-prismjs` or `@vuepress/plugin-shiki` to instead it.
*/
code?: never

vPre?: false | VPrePluginOptions
component?: false
emoji?: false | EmojiPluginOptions
frontmatter?: false | FrontmatterPluginOptions
Expand All @@ -39,6 +32,11 @@ export interface MarkdownOptions extends Options {
sfc?: false | SfcPluginOptions
slugify?: MarkdownSlugifyFunction
toc?: false | TocPluginOptions
vPre?: false | VPrePluginOptions
/**
* @deprecated This feature has been removed. Please use `@vuepress/plugin-prismjs` or `@vuepress/plugin-shiki` instead.
*/
code?: never
}

/**
Expand Down

0 comments on commit 7a94405

Please sign in to comment.