@leadertechie/md2html 0.1.0-alpha.0 → 0.1.0-alpha.3
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.md +28 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/lit-renderer.d.ts +10 -0
- package/dist/lit-renderer.d.ts.map +1 -0
- package/dist/lit-renderer.js +80 -0
- package/dist/parser.d.ts +16 -0
- package/dist/parser.d.ts.map +1 -0
- package/dist/parser.js +117 -0
- package/dist/pipeline.d.ts +18 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/pipeline.js +58 -0
- package/dist/renderer.d.ts +15 -0
- package/dist/renderer.d.ts.map +1 -0
- package/dist/renderer.js +102 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +6 -1
- package/.github/workflows/publish.yml +0 -76
- package/GitVersion.yml +0 -7
- package/__tests__/index.test.d.ts +0 -2
- package/__tests__/index.test.d.ts.map +0 -1
- package/__tests__/index.test.js +0 -130
- package/__tests__/index.test.ts +0 -155
- package/src/index.ts +0 -7
- package/src/lit-renderer.ts +0 -91
- package/src/parser.ts +0 -142
- package/src/pipeline.ts +0 -66
- package/src/renderer.ts +0 -67
- package/src/types.ts +0 -40
- package/tsconfig.json +0 -18
package/src/types.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export type ContentNodeType =
|
|
2
|
-
| 'text'
|
|
3
|
-
| 'heading'
|
|
4
|
-
| 'paragraph'
|
|
5
|
-
| 'list'
|
|
6
|
-
| 'list-item'
|
|
7
|
-
| 'image'
|
|
8
|
-
| 'code'
|
|
9
|
-
| 'container'
|
|
10
|
-
| 'strong'
|
|
11
|
-
| 'emphasis';
|
|
12
|
-
|
|
13
|
-
export interface ContentNode {
|
|
14
|
-
type: ContentNodeType;
|
|
15
|
-
content?: string;
|
|
16
|
-
children?: ContentNode[];
|
|
17
|
-
attributes?: Record<string, unknown>;
|
|
18
|
-
className?: string;
|
|
19
|
-
src?: string;
|
|
20
|
-
alt?: string;
|
|
21
|
-
ordered?: boolean;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface MarkdownContent {
|
|
25
|
-
title: string;
|
|
26
|
-
metadata?: Record<string, unknown>;
|
|
27
|
-
content: ContentNode[];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface ParseOptions {
|
|
31
|
-
gfm?: boolean;
|
|
32
|
-
breaks?: boolean;
|
|
33
|
-
pedantic?: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface PipelineConfig {
|
|
37
|
-
imagePathPrefix?: string;
|
|
38
|
-
imageBaseUrl?: string;
|
|
39
|
-
parseOptions?: ParseOptions;
|
|
40
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"lib": ["ES2020"],
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"forceConsistentCasingInFileNames": true,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"declarationMap": true,
|
|
13
|
-
"outDir": "./dist",
|
|
14
|
-
"rootDir": "./src"
|
|
15
|
-
},
|
|
16
|
-
"include": ["src/**/*"],
|
|
17
|
-
"exclude": ["node_modules", "dist", "__tests__", "**/*.test.ts"]
|
|
18
|
-
}
|