markdown-to-html-cli 2.2.1 → 2.2.2
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/README-zh.md +7 -5
- package/README.md +7 -5
- package/package.json +1 -1
package/README-zh.md
CHANGED
|
@@ -144,12 +144,14 @@ import { ParsedArgs } from 'minimist';
|
|
|
144
144
|
import { Options } from 'rehype-document';
|
|
145
145
|
export interface CreateOptions extends MDToHTMLOptions { }
|
|
146
146
|
export declare function create(options?: CreateOptions): string;
|
|
147
|
-
export interface RunArgvs extends ParsedArgs {
|
|
147
|
+
export interface RunArgvs extends Omit<ParsedArgs, '_'> {
|
|
148
148
|
version?: string;
|
|
149
149
|
source?: string;
|
|
150
150
|
output?: string;
|
|
151
|
-
/** Add a Github corner to your project page */
|
|
151
|
+
/** Add a Github corner to your project page. */
|
|
152
152
|
'github-corners'?: string;
|
|
153
|
+
/** Github corners style. */
|
|
154
|
+
'github-corners-fork'?: boolean;
|
|
153
155
|
/** Markdown string. */
|
|
154
156
|
markdown?: string;
|
|
155
157
|
/** The `<title>` tag is required in HTML documents! */
|
|
@@ -165,10 +167,11 @@ export interface RunArgvs extends ParsedArgs {
|
|
|
165
167
|
/** Define the author of a page */
|
|
166
168
|
author?: string;
|
|
167
169
|
}
|
|
168
|
-
export interface MDToHTMLOptions extends
|
|
169
|
-
'github-corners'?: RunArgvs['github-corners'];
|
|
170
|
+
export interface MDToHTMLOptions extends RunArgvs {
|
|
170
171
|
/** [rehype-document](https://github.com/rehypejs/rehype-document#options) options */
|
|
171
172
|
document?: Options;
|
|
173
|
+
/** Rewrite Element. [rehype-rewrite](https://github.com/jaywcjlove/rehype-rewrite#rewritenode-index-parent-void) */
|
|
174
|
+
rewrite?: RehypeRewriteOptions['rewrite'];
|
|
172
175
|
/** rewrite URLs of href and src attributes. */
|
|
173
176
|
reurls?: Record<string, string>;
|
|
174
177
|
/**
|
|
@@ -184,7 +187,6 @@ export interface MDToHTMLOptions extends Omit<RunArgvs, '_'> {
|
|
|
184
187
|
export declare function run(opts?: Omit<RunArgvs, "_">): any;
|
|
185
188
|
export declare const cliHelp: string;
|
|
186
189
|
export declare const exampleHelp: string;
|
|
187
|
-
|
|
188
190
|
```
|
|
189
191
|
|
|
190
192
|
## Development
|
package/README.md
CHANGED
|
@@ -144,12 +144,14 @@ import { ParsedArgs } from 'minimist';
|
|
|
144
144
|
import { Options } from 'rehype-document';
|
|
145
145
|
export interface CreateOptions extends MDToHTMLOptions { }
|
|
146
146
|
export declare function create(options?: CreateOptions): string;
|
|
147
|
-
export interface RunArgvs extends ParsedArgs {
|
|
147
|
+
export interface RunArgvs extends Omit<ParsedArgs, '_'> {
|
|
148
148
|
version?: string;
|
|
149
149
|
source?: string;
|
|
150
150
|
output?: string;
|
|
151
|
-
/** Add a Github corner to your project page */
|
|
151
|
+
/** Add a Github corner to your project page. */
|
|
152
152
|
'github-corners'?: string;
|
|
153
|
+
/** Github corners style. */
|
|
154
|
+
'github-corners-fork'?: boolean;
|
|
153
155
|
/** Markdown string. */
|
|
154
156
|
markdown?: string;
|
|
155
157
|
/** The `<title>` tag is required in HTML documents! */
|
|
@@ -165,10 +167,11 @@ export interface RunArgvs extends ParsedArgs {
|
|
|
165
167
|
/** Define the author of a page */
|
|
166
168
|
author?: string;
|
|
167
169
|
}
|
|
168
|
-
export interface MDToHTMLOptions extends
|
|
169
|
-
'github-corners'?: RunArgvs['github-corners'];
|
|
170
|
+
export interface MDToHTMLOptions extends RunArgvs {
|
|
170
171
|
/** [rehype-document](https://github.com/rehypejs/rehype-document#options) options */
|
|
171
172
|
document?: Options;
|
|
173
|
+
/** Rewrite Element. [rehype-rewrite](https://github.com/jaywcjlove/rehype-rewrite#rewritenode-index-parent-void) */
|
|
174
|
+
rewrite?: RehypeRewriteOptions['rewrite'];
|
|
172
175
|
/** rewrite URLs of href and src attributes. */
|
|
173
176
|
reurls?: Record<string, string>;
|
|
174
177
|
/**
|
|
@@ -184,7 +187,6 @@ export interface MDToHTMLOptions extends Omit<RunArgvs, '_'> {
|
|
|
184
187
|
export declare function run(opts?: Omit<RunArgvs, "_">): any;
|
|
185
188
|
export declare const cliHelp: string;
|
|
186
189
|
export declare const exampleHelp: string;
|
|
187
|
-
|
|
188
190
|
```
|
|
189
191
|
|
|
190
192
|
## Development
|