@flint.fyi/markdown-language 0.15.1 → 0.15.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.
@@ -1,7 +1,6 @@
1
1
  import { DirectivesCollector } from "@flint.fyi/core";
2
2
  import { nullThrows } from "@flint.fyi/utils";
3
3
  import { visit } from "unist-util-visit";
4
-
5
4
  //#region src/directives/parseDirectivesFromMarkdownFile.ts
6
5
  function parseDirectivesFromMarkdownFile(root, sourceText) {
7
6
  const collector = new DirectivesCollector(root.children.find((child) => child.position?.start.offset !== void 0)?.position?.start.offset ?? sourceText.length);
@@ -29,7 +28,7 @@ function parseDirectivesFromMarkdownFile(root, sourceText) {
29
28
  });
30
29
  return collector.collect();
31
30
  }
32
-
33
31
  //#endregion
34
32
  export { parseDirectivesFromMarkdownFile };
33
+
35
34
  //# sourceMappingURL=parseDirectivesFromMarkdownFile.js.map
package/lib/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  import { markdownLanguage } from "./language.js";
2
-
3
- export { markdownLanguage };
2
+ export { markdownLanguage };
package/lib/language.js CHANGED
@@ -3,7 +3,6 @@ import { createLanguage } from "@flint.fyi/core";
3
3
  import { fromMarkdown } from "mdast-util-from-markdown";
4
4
  import { gfmFromMarkdown } from "mdast-util-gfm";
5
5
  import { gfm } from "micromark-extension-gfm";
6
-
7
6
  //#region src/language.ts
8
7
  const markdownLanguage = createLanguage({
9
8
  about: { name: "Markdown" },
@@ -36,7 +35,7 @@ const markdownLanguage = createLanguage({
36
35
  visit(file.services.root);
37
36
  }
38
37
  });
39
-
40
38
  //#endregion
41
39
  export { markdownLanguage };
40
+
42
41
  //# sourceMappingURL=language.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flint.fyi/markdown-language",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "[Experimental] Markdown language for Flint.",
5
5
  "homepage": "https://flint.fyi",
6
6
  "repository": {
@@ -29,12 +29,12 @@
29
29
  "mdast-util-gfm": "^3.1.0",
30
30
  "micromark-extension-gfm": "^3.0.0",
31
31
  "unist-util-visit": "^5.0.0",
32
- "@flint.fyi/core": "^0.20.0",
33
- "@flint.fyi/utils": "^0.14.0"
32
+ "@flint.fyi/core": "^0.21.0",
33
+ "@flint.fyi/utils": "^0.14.1"
34
34
  },
35
35
  "devDependencies": {
36
- "tsdown": "0.20.1",
37
- "vitest": "4.0.15"
36
+ "tsdown": "0.21.0",
37
+ "vitest": "4.1.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=24.0.0"
@@ -43,6 +43,6 @@
43
43
  "access": "public"
44
44
  },
45
45
  "scripts": {
46
- "test": "vitest --typecheck --project markdown-language"
46
+ "test": "vitest --project markdown-language"
47
47
  }
48
48
  }