@mdfriday/foundry 25.12.1 → 26.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.md +8 -0
- package/dist/index.js +1 -1
- package/dist/internal/application/incremental-build-coordinator.d.ts +1 -1
- package/dist/internal/application/ssg.d.ts +5 -5
- package/dist/internal/domain/config/entity/config.d.ts +6 -2
- package/dist/internal/domain/config/entity/markdown.d.ts +16 -0
- package/dist/internal/domain/config/index.d.ts +2 -0
- package/dist/internal/domain/config/type.d.ts +11 -0
- package/dist/internal/domain/config/vo/markdown.d.ts +5 -0
- package/dist/internal/domain/content/entity/page.d.ts +2 -0
- package/dist/internal/domain/content/entity/pagesource.d.ts +2 -0
- package/dist/internal/domain/content/type.d.ts +13 -3
- package/dist/internal/domain/content/vo/fileinfo.d.ts +1 -0
- package/dist/internal/domain/markdown/entity/markdown.d.ts +2 -0
- package/dist/internal/domain/markdown/factory/it/config.d.ts +107 -0
- package/dist/internal/domain/markdown/factory/it/index.d.ts +32 -0
- package/dist/internal/domain/markdown/factory/it/parserresult.d.ts +18 -0
- package/dist/internal/domain/markdown/factory/it/plugins/callout-plugin.d.ts +6 -0
- package/dist/internal/domain/markdown/factory/it/plugins/latex-plugin.d.ts +6 -0
- package/dist/internal/domain/markdown/factory/it/plugins/mermaid-plugin.d.ts +6 -0
- package/dist/internal/domain/markdown/factory/it/plugins/tag-plugin.d.ts +24 -0
- package/dist/internal/domain/markdown/factory/it/plugins/wikilink-plugin.d.ts +12 -0
- package/dist/internal/domain/markdown/factory/it/plugins/wikilink.d.ts +16 -0
- package/dist/internal/domain/markdown/factory/it/tableofcontents.d.ts +60 -0
- package/dist/internal/domain/markdown/factory/it/util/path.d.ts +32 -0
- package/dist/internal/domain/markdown/factory/it/util/slugger-fallback.d.ts +2 -0
- package/dist/internal/domain/markdown/factory/markdown.d.ts +1 -1
- package/dist/internal/domain/paths/entity/path.d.ts +1 -0
- package/dist/internal/domain/site/entity/page.d.ts +6 -0
- package/dist/internal/domain/site/entity/pagegraph.d.ts +17 -0
- package/dist/internal/domain/site/entity/site.d.ts +8 -0
- package/dist/internal/domain/site/service/html-link-processor.d.ts +20 -0
- package/dist/internal/domain/site/vo/path.d.ts +18 -0
- package/package.json +23 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type LinkStrategy = 'absolute' | 'relative' | 'shortest';
|
|
2
|
+
export declare function splitAnchor(link: string): [string, string];
|
|
3
|
+
export declare function simplifySlug(fp: string): string;
|
|
4
|
+
export declare function slugifyFilePath(fp: string, excludeExt?: boolean): string;
|
|
5
|
+
export declare function transformInternalLink(link: string): string;
|
|
6
|
+
export declare function pathToRoot(slug: string): string;
|
|
7
|
+
export declare function resolveRelative(current: string, target: string): string;
|
|
8
|
+
export declare function joinSegments(...args: string[]): string;
|
|
9
|
+
export interface TransformOptions {
|
|
10
|
+
strategy: LinkStrategy;
|
|
11
|
+
allSlugs: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function transformLink(src: string, target: string, opts: TransformOptions): string;
|
|
14
|
+
export declare function isFolderPath(fplike: string): boolean;
|
|
15
|
+
export declare function endsWith(s: string, suffix: string): boolean;
|
|
16
|
+
export declare function trimSuffix(s: string, suffix: string): string;
|
|
17
|
+
export declare function getFileExtension(s: string): string | undefined;
|
|
18
|
+
export declare function stripSlashes(s: string, onlyStripPrefix?: boolean): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdfriday/foundry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.2.2",
|
|
4
4
|
"description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"node": ">=24.5.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@types/hast": "^3.0.4",
|
|
41
42
|
"@types/jest": "^29.5.8",
|
|
42
43
|
"@types/jszip": "^3.4.0",
|
|
43
44
|
"@types/node": "^24.5.0",
|
|
@@ -59,11 +60,32 @@
|
|
|
59
60
|
"dependencies": {
|
|
60
61
|
"@mdfriday/text-template": "^0.2.6",
|
|
61
62
|
"@types/js-yaml": "^4.0.9",
|
|
63
|
+
"@types/markdown-it": "^13.0.7",
|
|
62
64
|
"chokidar": "^4.0.3",
|
|
65
|
+
"github-slugger": "^2.0.0",
|
|
66
|
+
"hast": "^0.0.2",
|
|
67
|
+
"is-absolute-url": "^5.0.0",
|
|
63
68
|
"js-yaml": "^4.1.0",
|
|
64
69
|
"jszip": "^3.10.1",
|
|
70
|
+
"markdown-it": "^14.0.0",
|
|
71
|
+
"markdown-it-abbr": "^2.0.0",
|
|
72
|
+
"markdown-it-anchor": "^8.6.7",
|
|
73
|
+
"markdown-it-attrs": "^4.1.6",
|
|
74
|
+
"markdown-it-deflist": "^3.0.0",
|
|
75
|
+
"markdown-it-emoji": "^3.0.0",
|
|
76
|
+
"markdown-it-footnote": "^4.0.0",
|
|
77
|
+
"markdown-it-ins": "^4.0.0",
|
|
78
|
+
"markdown-it-mark": "^4.0.0",
|
|
79
|
+
"markdown-it-sub": "^2.0.0",
|
|
80
|
+
"markdown-it-sup": "^2.0.0",
|
|
81
|
+
"markdown-it-task-lists": "^2.1.1",
|
|
82
|
+
"markdown-it-toc-done-right": "^4.2.0",
|
|
83
|
+
"rehype-parse": "^9.0.1",
|
|
84
|
+
"rehype-stringify": "^10.0.1",
|
|
65
85
|
"smol-toml": "^1.4.1",
|
|
66
86
|
"terser": "^5.43.1",
|
|
87
|
+
"unified": "^11.0.5",
|
|
88
|
+
"unist-util-visit": "^5.1.0",
|
|
67
89
|
"ws": "^8.18.3"
|
|
68
90
|
}
|
|
69
91
|
}
|