remark-mdat 1.0.2 → 1.0.4
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.js +36 -40
- package/dist/lib/mdast-utils/mdast-util-mdat-check.d.ts +1 -1
- package/dist/lib/mdast-utils/mdast-util-mdat-clean.d.ts +1 -1
- package/dist/lib/mdast-utils/mdast-util-mdat-expand.d.ts +1 -1
- package/dist/lib/mdast-utils/mdast-util-mdat.d.ts +2 -2
- package/dist/lib/mdat/mdat-log.d.ts +1 -1
- package/dist/lib/mdat/rules.d.ts +1 -1
- package/dist/lib/remark-mdat.d.ts +1 -1
- package/package.json +10 -10
- package/readme.md +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Root } from 'mdast';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { VFile } from 'vfile';
|
|
3
|
+
import type { Rules } from '../mdat/rules';
|
|
4
4
|
export type Options = {
|
|
5
5
|
addMetaComment: boolean;
|
|
6
6
|
closingPrefix: string;
|
package/dist/lib/mdat/rules.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Root } from 'mdast';
|
|
2
2
|
import type { Plugin } from 'unified';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
4
|
+
import type { Options as MdatOptions } from './mdast-utils/mdast-util-mdat';
|
|
5
5
|
export type Options = Partial<MdatOptions>;
|
|
6
6
|
export declare const optionsSchema: z.ZodObject<{
|
|
7
7
|
addMetaComment: z.ZodOptional<z.ZodBoolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remark-mdat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A remark plugin implementing the Markdown Autophagic Template (MDAT) system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mdat",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@types/mdast": "^4.0.4",
|
|
38
|
-
"@types/node": "^18.19.
|
|
38
|
+
"@types/node": "^18.19.100",
|
|
39
39
|
"@types/unist": "^3.0.3",
|
|
40
|
-
"
|
|
40
|
+
"picocolors": "^1.1.1",
|
|
41
|
+
"type-fest": "^4.41.0",
|
|
41
42
|
"unified": "^11.0.5",
|
|
42
43
|
"vfile": "^6.0.3",
|
|
43
|
-
"zod": "^3.24.
|
|
44
|
+
"zod": "^3.24.4"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@kitschpatrol/shared-config": "^5.
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
48
|
-
"bumpp": "^10.0
|
|
49
|
-
"chalk": "^5.4.1",
|
|
47
|
+
"@kitschpatrol/shared-config": "^5.4.0",
|
|
48
|
+
"@microsoft/api-extractor": "^7.52.7",
|
|
49
|
+
"bumpp": "^10.1.0",
|
|
50
50
|
"cli-table3": "^0.6.5",
|
|
51
51
|
"deepmerge-ts": "^7.1.5",
|
|
52
52
|
"hast-util-from-html": "^2.0.3",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"remark": "^15.0.1",
|
|
55
55
|
"remark-gfm": "^4.0.1",
|
|
56
56
|
"tsup": "^8.4.0",
|
|
57
|
-
"typescript": "~5.
|
|
57
|
+
"typescript": "~5.8.3",
|
|
58
58
|
"unist-util-visit": "^5.0.0",
|
|
59
59
|
"vfile-message": "^4.0.2",
|
|
60
|
-
"vitest": "^3.
|
|
60
|
+
"vitest": "^3.1.3"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": "^18.19.0 || >=20.5.0"
|
package/readme.md
CHANGED
|
@@ -137,8 +137,9 @@ console.log(markdownOutput.toString())
|
|
|
137
137
|
If you wanted to replace `<!-- time -->` comments in your Markdown file with the current time, you could pass in a rule:
|
|
138
138
|
|
|
139
139
|
```ts
|
|
140
|
+
import type { Rules } from 'remark-mdat'
|
|
140
141
|
import { remark } from 'remark'
|
|
141
|
-
import remarkMdat
|
|
142
|
+
import remarkMdat from 'remark-mdat'
|
|
142
143
|
|
|
143
144
|
// Create the rule
|
|
144
145
|
const rules: Rules = {
|