MCPcopy
hub / github.com/vuejs/vuepress / MarkdownConfig

Interface MarkdownConfig

packages/@vuepress/types/src/markdown.ts:9–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 * Markdown config.
8 */
9export interface MarkdownConfig {
10 /**
11 * Whether to show line numbers to the left of each code blocks.
12 *
13 * @see https://vuepress.vuejs.org/config/#markdown-linenumbers
14 */
15 lineNumbers?: boolean;
16 /**
17 * Function for transforming header texts into slugs.
18 *
19 * @see https://vuepress.vuejs.org/config/#markdown-slugify
20 */
21 slugify?: (str: string) => string;
22 /**
23 * Options for markdown-it-anchor
24 *
25 * @default { permalink: true, permalinkBefore: true, permalinkSymbol: '#' }
26 * @see https://vuepress.vuejs.org/config/#markdown-anchor
27 */
28 anchor?: {
29 /**
30 * @deprecated please using "markdown.slugify"
31 */
32 slugify?: (str: string) => string;
33 /**
34 * @default true
35 */
36 permalink?: boolean;
37 /**
38 * @default true
39 */
40 permalinkBefore?: boolean;
41 /**
42 * @default '#'
43 */
44 permalinkSymbol?: string;
45 };
46 /**
47 * Option to customize internal links to be compatible when using the
48 * [vuepress-plugin-clean-urls](https://vuepress-community.netlify.app/en/plugins/clean-urls/)
49 *
50 * @default '.html'
51 * @see https://vuepress.vuejs.org/config/#markdown-pagesuffix
52 */
53 pageSuffix?: string;
54 /**
55 * The key and value pair will be added to <a> tags that point to an external link.
56 *
57 * @default { target: '_blank', rel: 'noopener noreferrer' }
58 * @see https://vuepress.vuejs.org/config/#markdown-externallinks
59 */
60 externalLinks?: boolean;
61 /**
62 * Options for [markdown-it-table-of-contents](https://github.com/cmaas/markdown-it-table-of-contents).
63 *
64 * @see https://vuepress.vuejs.org/config/#markdown-toc
65 */
66 toc?: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…