@vuepress/markdown 2.0.0-beta.50-pre.1 → 2.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -15,7 +15,6 @@ import emojiPlugin from 'markdown-it-emoji';
15
15
  export { default as emojiPlugin } from 'markdown-it-emoji';
16
16
  export { ComponentPluginOptions, componentPlugin } from '@mdit-vue/plugin-component';
17
17
  export { titlePlugin } from '@mdit-vue/plugin-title';
18
- import { RuleBlock } from 'markdown-it/lib/parser_block.js';
19
18
 
20
19
  declare type AnchorPluginOptions = anchorPlugin.AnchorOptions;
21
20
 
@@ -30,8 +29,6 @@ interface AssetsPluginOptions {
30
29
  */
31
30
  declare const assetsPlugin: PluginWithOptions<AssetsPluginOptions>;
32
31
 
33
- declare const resolveLink: (link: string, relativePathPrefix: string, env: MarkdownEnv) => string;
34
-
35
32
  interface CodePluginOptions {
36
33
  /**
37
34
  * Enable highlight lines or not
@@ -72,70 +69,6 @@ interface CodePluginOptions {
72
69
  */
73
70
  declare const codePlugin: PluginWithOptions<CodePluginOptions>;
74
71
 
75
- /**
76
- * Language type for syntax highlight
77
- */
78
- interface HighlightLanguage {
79
- /**
80
- * Name of the language
81
- *
82
- * The name to be used for the class name,
83
- * e.g. `class="language-typescript"`
84
- */
85
- name: string;
86
- /**
87
- * Extension of the language
88
- *
89
- * The file extension, which will be used for the
90
- * class name, e.g. `class="ext-ts"`
91
- */
92
- ext: string;
93
- /**
94
- * Aliases that point to this language
95
- *
96
- * Do not conflict with other languages
97
- */
98
- aliases: string[];
99
- }
100
- declare const languageBash: HighlightLanguage;
101
- declare const languageCsharp: HighlightLanguage;
102
- declare const languageDocker: HighlightLanguage;
103
- declare const languageFsharp: HighlightLanguage;
104
- declare const languageJavascript: HighlightLanguage;
105
- declare const languageKotlin: HighlightLanguage;
106
- declare const languageMarkdown: HighlightLanguage;
107
- declare const languagePython: HighlightLanguage;
108
- declare const languageRuby: HighlightLanguage;
109
- declare const languageRust: HighlightLanguage;
110
- declare const languageStylus: HighlightLanguage;
111
- declare const languageTypescript: HighlightLanguage;
112
- declare const languageYaml: HighlightLanguage;
113
-
114
- declare type HighlightLinesRange = [number, number];
115
- /**
116
- * Resolve highlight-lines ranges from token info
117
- */
118
- declare const resolveHighlightLines: (info: string) => HighlightLinesRange[] | null;
119
- /**
120
- * Check if a line number is in ranges
121
- */
122
- declare const isHighlightLine: (lineNumber: number, ranges: HighlightLinesRange[]) => boolean;
123
-
124
- /**
125
- * Resolve language for highlight from token info
126
- */
127
- declare const resolveLanguage: (info: string) => HighlightLanguage;
128
-
129
- /**
130
- * Resolve the `:line-numbers` / `:no-line-numbers` mark from token info
131
- */
132
- declare const resolveLineNumbers: (info: string) => boolean | null;
133
-
134
- /**
135
- * Resolve the `:v-pre` / `:no-v-pre` mark from token info
136
- */
137
- declare const resolveVPre: (info: string) => boolean | null;
138
-
139
72
  declare type EmojiPluginOptions = emojiPlugin.Options;
140
73
 
141
74
  interface ImportCodePluginOptions {
@@ -146,19 +79,6 @@ interface ImportCodePluginOptions {
146
79
  }
147
80
  declare const importCodePlugin: PluginWithOptions<ImportCodePluginOptions>;
148
81
 
149
- declare const createImportCodeBlockRule: ({ handleImportPath }: ImportCodePluginOptions) => RuleBlock;
150
-
151
- interface ImportCodeTokenMeta {
152
- importPath: string;
153
- lineStart: number;
154
- lineEnd?: number;
155
- }
156
-
157
- declare const resolveImportCode: ({ importPath, lineStart, lineEnd }: ImportCodeTokenMeta, { filePath }: MarkdownEnv) => {
158
- importFilePath: string | null;
159
- importCode: string;
160
- };
161
-
162
82
  interface LinksPluginOptions {
163
83
  /**
164
84
  * Tag for internal links
@@ -187,14 +107,6 @@ interface LinksPluginOptions {
187
107
  */
188
108
  declare const linksPlugin: PluginWithOptions<LinksPluginOptions>;
189
109
 
190
- /**
191
- * Resolve relative and absolute paths according to the `base` and `filePathRelative`
192
- */
193
- declare const resolvePaths: (rawPath: string, base: string, filePathRelative: string | null) => {
194
- absolutePath: string;
195
- relativePath: string;
196
- };
197
-
198
110
  declare type Markdown = MarkdownIt;
199
111
 
200
112
  interface MarkdownOptions extends MarkdownIt.Options {
@@ -269,4 +181,4 @@ declare type MarkdownSlugifyFunction = (str: string) => string;
269
181
  */
270
182
  declare const createMarkdown: ({ anchor, assets, code, component, emoji, frontmatter, headers, title, importCode, links, sfc, slugify, toc, ...markdownItOptions }?: MarkdownOptions) => Markdown;
271
183
 
272
- export { AnchorPluginOptions, AssetsPluginOptions, CodePluginOptions, EmojiPluginOptions, HighlightLanguage, HighlightLinesRange, ImportCodePluginOptions, ImportCodeTokenMeta, LinksPluginOptions, Markdown, MarkdownEnv, MarkdownHeader, MarkdownLink, MarkdownOptions, MarkdownSlugifyFunction, assetsPlugin, codePlugin, createImportCodeBlockRule, createMarkdown, importCodePlugin, isHighlightLine, languageBash, languageCsharp, languageDocker, languageFsharp, languageJavascript, languageKotlin, languageMarkdown, languagePython, languageRuby, languageRust, languageStylus, languageTypescript, languageYaml, linksPlugin, resolveHighlightLines, resolveImportCode, resolveLanguage, resolveLineNumbers, resolveLink, resolvePaths, resolveVPre };
184
+ export { AnchorPluginOptions, AssetsPluginOptions, CodePluginOptions, EmojiPluginOptions, ImportCodePluginOptions, LinksPluginOptions, Markdown, MarkdownEnv, MarkdownHeader, MarkdownLink, MarkdownOptions, MarkdownSlugifyFunction, assetsPlugin, codePlugin, createMarkdown, importCodePlugin, linksPlugin };
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import { titlePlugin } from "@mdit-vue/plugin-title";
23
23
  import { tocPlugin } from "@mdit-vue/plugin-toc";
24
24
 
25
25
  // src/plugins/anchorPlugin.ts
26
- import anchorPlugin from "markdown-it-anchor";
26
+ import { default as anchorPlugin } from "markdown-it-anchor";
27
27
 
28
28
  // src/plugins/assetsPlugin/resolveLink.ts
29
29
  import { path } from "@vuepress/utils";
@@ -549,34 +549,12 @@ export {
549
549
  assetsPlugin,
550
550
  codePlugin,
551
551
  componentPlugin,
552
- createImportCodeBlockRule,
553
552
  createMarkdown,
554
553
  emojiPlugin,
555
554
  frontmatterPlugin,
556
555
  headersPlugin,
557
556
  importCodePlugin,
558
- isHighlightLine,
559
- languageBash,
560
- languageCsharp,
561
- languageDocker,
562
- languageFsharp,
563
- languageJavascript,
564
- languageKotlin,
565
- languageMarkdown,
566
- languagePython,
567
- languageRuby,
568
- languageRust,
569
- languageStylus,
570
- languageTypescript,
571
- languageYaml,
572
557
  linksPlugin,
573
- resolveHighlightLines,
574
- resolveImportCode,
575
- resolveLanguage,
576
- resolveLineNumbers,
577
- resolveLink,
578
- resolvePaths,
579
- resolveVPre,
580
558
  sfcPlugin,
581
559
  titlePlugin,
582
560
  tocPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/markdown",
3
- "version": "2.0.0-beta.50-pre.1",
3
+ "version": "2.0.0-beta.50",
4
4
  "description": "Markdown package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,18 +27,18 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@mdit-vue/plugin-component": "^0.9.0",
31
- "@mdit-vue/plugin-frontmatter": "^0.9.1",
32
- "@mdit-vue/plugin-headers": "^0.9.1",
33
- "@mdit-vue/plugin-sfc": "^0.9.1",
34
- "@mdit-vue/plugin-title": "^0.9.1",
35
- "@mdit-vue/plugin-toc": "^0.9.1",
36
- "@mdit-vue/shared": "^0.9.1",
37
- "@mdit-vue/types": "^0.9.0",
30
+ "@mdit-vue/plugin-component": "^0.9.2",
31
+ "@mdit-vue/plugin-frontmatter": "^0.9.2",
32
+ "@mdit-vue/plugin-headers": "^0.9.3",
33
+ "@mdit-vue/plugin-sfc": "^0.9.2",
34
+ "@mdit-vue/plugin-title": "^0.9.3",
35
+ "@mdit-vue/plugin-toc": "^0.9.2",
36
+ "@mdit-vue/shared": "^0.9.2",
37
+ "@mdit-vue/types": "^0.9.2",
38
38
  "@types/markdown-it": "^12.2.3",
39
39
  "@types/markdown-it-emoji": "^2.0.2",
40
- "@vuepress/shared": "2.0.0-beta.50-pre.1",
41
- "@vuepress/utils": "2.0.0-beta.50-pre.1",
40
+ "@vuepress/shared": "2.0.0-beta.50",
41
+ "@vuepress/utils": "2.0.0-beta.50",
42
42
  "markdown-it": "^13.0.1",
43
43
  "markdown-it-anchor": "^8.6.4",
44
44
  "markdown-it-emoji": "^2.0.2",