@riebeckite/plugin-excalidraw 0.0.32 → 0.0.33
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 +1 -1
- package/README_ja.md +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/package.json +3 -3
package/README.md
CHANGED
package/README_ja.md
CHANGED
|
@@ -50,7 +50,7 @@ export default defineConfig({
|
|
|
50
50
|
|
|
51
51
|
## 単体ページとしての表示
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Markdown として保存された Excalidraw の描画は、通常の Markdown ページではなく専用ページとして表示されます。プラグインはページ型(`excalidraw-document`)を登録し、パーマリンク末尾の `.excalidraw` を除いたパスを引き受けます。
|
|
54
54
|
|
|
55
55
|
- 判定: slug が `.excalidraw` で終わる(`*.excalidraw.md`)、または frontmatter に `excalidraw-plugin: parsed` がある
|
|
56
56
|
- `drawing.excalidraw.md`(パーマリンク `/drawing.excalidraw`)は `/drawing` で表示される
|
|
@@ -60,7 +60,7 @@ Excalidraw の描画である Markdown エントリは、通常の Markdown ペ
|
|
|
60
60
|
|
|
61
61
|
## 公開 API
|
|
62
62
|
|
|
63
|
-
- `excalidraw(options?)` / `
|
|
63
|
+
- `excalidraw(options?)` / `excalidraw`:プラグインファクトリ
|
|
64
64
|
- `ExcalidrawOptions`:オプションの型
|
|
65
65
|
|
|
66
66
|
## 関連資料
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { ExcalidrawOptions } from "./src/types.js";
|
|
2
2
|
export type { ExcalidrawOptions } from "./src/types.js";
|
|
3
3
|
export declare function excalidraw(options?: ExcalidrawOptions): import("@riebeckite/core").RiebeckitePlugin<ExcalidrawOptions>;
|
|
4
|
-
export declare const excalidrawPlugin: typeof excalidraw;
|
package/dist/index.js
CHANGED
|
@@ -192,7 +192,6 @@ function excalidraw(options = {}) {
|
|
|
192
192
|
]
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
var excalidrawPlugin = excalidraw;
|
|
196
195
|
async function renderAttachment(context, options) {
|
|
197
196
|
if (context.kind !== "attachment") return null;
|
|
198
197
|
if (!isExcalidrawPath(context.path)) return null;
|
|
@@ -479,6 +478,5 @@ function getFileName(contentPath) {
|
|
|
479
478
|
return contentPath.split("/").at(-1) ?? contentPath;
|
|
480
479
|
}
|
|
481
480
|
export {
|
|
482
|
-
excalidraw
|
|
483
|
-
excalidrawPlugin
|
|
481
|
+
excalidraw
|
|
484
482
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-excalidraw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@excalidraw/excalidraw": "^0.18.0",
|
|
25
|
+
"@riebeckite/core": "0.0.33",
|
|
25
26
|
"lz-string": "^1.5.0",
|
|
26
|
-
"unist-util-visit": "^5.0.0"
|
|
27
|
-
"@riebeckite/core": "0.0.32"
|
|
27
|
+
"unist-util-visit": "^5.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/mdast": "^4.0.4",
|