mdast-pele 0.1.0 → 0.1.1

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 CHANGED
@@ -1 +1 @@
1
- export { r as clearRenderCache, o as diagramId, t as isPeleLang, n as parseFenceMeta, i as renderDiagram, a as renderFenceToHtml } from "./meta-C5f6wlQq.js";
1
+ export { r as clearRenderCache, o as diagramId, t as isPeleLang, n as parseFenceMeta, i as renderDiagram, a as renderFenceToHtml } from "./meta-C-5ZQukC.js";
@@ -14,7 +14,7 @@ function escapeHtml(value) {
14
14
  function formatError(error, context) {
15
15
  const message = error instanceof Error ? error.message : String(error);
16
16
  const errorLine = error instanceof PeleError && error.line > 0 ? error.line : void 0;
17
- const line = context.line !== void 0 && errorLine !== void 0 ? context.line + errorLine - 1 : context.line ?? errorLine;
17
+ const line = context.line !== void 0 && errorLine !== void 0 ? context.line + errorLine : context.line ?? errorLine;
18
18
  const location = context.fileURL ? `${context.fileURL}${line === void 0 ? "" : `:${line}`}` : line === void 0 ? "" : `line ${line}`;
19
19
  return location ? `${location}: ${message}` : message;
20
20
  }
package/dist/remark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as renderFenceToHtml, n as parseFenceMeta, t as isPeleLang } from "./meta-C5f6wlQq.js";
1
+ import { a as renderFenceToHtml, n as parseFenceMeta, t as isPeleLang } from "./meta-C-5ZQukC.js";
2
2
  import { visit } from "unist-util-visit";
3
3
  // src/remark.ts
4
4
  function remarkPele(options) {
package/dist/satteri.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as renderFenceToHtml, n as parseFenceMeta, t as isPeleLang } from "./meta-C5f6wlQq.js";
1
+ import { a as renderFenceToHtml, n as parseFenceMeta, t as isPeleLang } from "./meta-C-5ZQukC.js";
2
2
  // src/satteri.ts
3
3
  function satteriPele(options) {
4
4
  return {
package/package.json CHANGED
@@ -1,39 +1,33 @@
1
1
  {
2
2
  "name": "mdast-pele",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Render Mermaid fences to static SVG with Pele in remark and Sätteri pipelines.",
5
- "license": "MIT",
6
- "type": "module",
7
5
  "keywords": [
6
+ "diagrams",
7
+ "markdown",
8
8
  "mdast",
9
- "remark",
10
- "satteri",
11
9
  "mermaid",
12
10
  "pele",
13
- "svg",
14
- "diagrams",
15
- "markdown"
11
+ "remark",
12
+ "satteri",
13
+ "svg"
16
14
  ],
17
15
  "homepage": "https://t128n.github.io/pele-x/",
16
+ "bugs": {
17
+ "url": "https://github.com/t128n/pele-x/issues"
18
+ },
19
+ "license": "MIT",
18
20
  "repository": {
19
21
  "type": "git",
20
22
  "url": "git+https://github.com/t128n/pele-x.git",
21
23
  "directory": "packages/mdast"
22
24
  },
23
- "bugs": {
24
- "url": "https://github.com/t128n/pele-x/issues"
25
- },
26
25
  "files": [
27
26
  "dist",
28
27
  "README.md",
29
28
  "LICENSE"
30
29
  ],
31
- "publishConfig": {
32
- "access": "public"
33
- },
34
- "engines": {
35
- "node": ">=20"
36
- },
30
+ "type": "module",
37
31
  "main": "./dist/index.js",
38
32
  "types": "./dist/index.d.ts",
39
33
  "exports": {
@@ -50,6 +44,9 @@
50
44
  "import": "./dist/satteri.js"
51
45
  }
52
46
  },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
53
50
  "scripts": {
54
51
  "build": "tsdown",
55
52
  "typecheck": "tsc --noEmit"
@@ -57,7 +54,10 @@
57
54
  "dependencies": {
58
55
  "@types/mdast": "4.0.4",
59
56
  "@types/unist": "3.0.3",
60
- "pele": "1.10.0",
57
+ "pele": "1.12.0",
61
58
  "unist-util-visit": "5.0.0"
59
+ },
60
+ "engines": {
61
+ "node": ">=20"
62
62
  }
63
63
  }