@riebeckite/plugin-kanban 0.0.26 → 0.0.28
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 +5 -5
- package/dist/index.js +1 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Columns are lines that start with `## ` (configurable with `columnMarker`).
|
|
|
19
19
|
Every list item that follows becomes a card: `- [ ] text` (unchecked),
|
|
20
20
|
`- [x] text` (checked), or a plain `- text` item.
|
|
21
21
|
|
|
22
|
-
Card text supports inline `[
|
|
22
|
+
Card text supports inline `[wikilinks](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/wikilinks.md)` (resolved to real hrefs from the
|
|
23
23
|
content manifest), `#tags`, and simple `**bold**` emphasis.
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/README_ja.md
CHANGED
|
@@ -54,7 +54,7 @@ kanban-plugin: board
|
|
|
54
54
|
- [ ] プラグインを公開する
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
カードのテキストでは `[
|
|
57
|
+
カードのテキストでは `[ウィキリンク](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/ウィキリンク.ja.md)`(マニフェストから実際の href に解決)、`#タグ`、`**太字**` を使えます。
|
|
58
58
|
|
|
59
59
|
## 出力
|
|
60
60
|
|
|
@@ -94,10 +94,10 @@ kanban-plugin: board
|
|
|
94
94
|
|
|
95
95
|
## エクスポート
|
|
96
96
|
|
|
97
|
-
- `kanban(options?)
|
|
98
|
-
- `kanbanPlugin
|
|
99
|
-
- `resolveKanbanOptions(options?)
|
|
100
|
-
- `remarkKanban(options?)
|
|
97
|
+
- `kanban(options?)`:プラグインファクトリ
|
|
98
|
+
- `kanbanPlugin`:`kanban` の別名
|
|
99
|
+
- `resolveKanbanOptions(options?)`:既定値を適用する
|
|
100
|
+
- `remarkKanban(options?)`:プラグインが使う Remark 変換
|
|
101
101
|
- `parseKanban(source, options)` と `renderKanban(result, options, resolveLink, source)`
|
|
102
102
|
- `stripFrontmatter(markdown)` と `isKanbanNote(frontmatter)`
|
|
103
103
|
- `createKanbanLinkResolver(manifest)` と `createKanbanPlaceholder(source)`
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { visit } from "unist-util-visit";
|
|
9
9
|
|
|
10
10
|
// src/parse.ts
|
|
11
|
-
import { scanMarkdownFenceLines } from "@riebeckite/core";
|
|
11
|
+
import { escapeRegExp, scanMarkdownFenceLines } from "@riebeckite/core";
|
|
12
12
|
var LIST_ITEM = /^\s*[-*+]\s+(.*)$/;
|
|
13
13
|
var TASK_MARKER = /^\[([ xX])\]\s*(.*)$/;
|
|
14
14
|
function parseKanban(source, options) {
|
|
@@ -79,9 +79,6 @@ function parseCard(text) {
|
|
|
79
79
|
}
|
|
80
80
|
return { checked: false, text: text.trim() };
|
|
81
81
|
}
|
|
82
|
-
function escapeRegExp(value) {
|
|
83
|
-
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
84
|
-
}
|
|
85
82
|
|
|
86
83
|
// src/placeholder.ts
|
|
87
84
|
var KANBAN_ATTRIBUTE = "data-rr-kanban";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-kanban",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@types/mdast": "^4.0.4",
|
|
19
19
|
"unist-util-visit": "^5.1.0",
|
|
20
|
-
"@riebeckite/core": "0.0.
|
|
20
|
+
"@riebeckite/core": "0.0.28"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"tsx": "^4.22.4"
|