@riebeckite/plugin-kanban 0.0.19 → 0.0.21

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 CHANGED
@@ -113,5 +113,5 @@ document with a `@riebeckite/plugin-kanban` message.
113
113
 
114
114
  ## See also
115
115
 
116
- - [Plugin guide](../../../docs/docs/reference/plugin-api.en.md)
116
+ - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
117
117
 
package/README_ja.md CHANGED
@@ -103,5 +103,5 @@ kanban-plugin: board
103
103
 
104
104
  ## 関連資料
105
105
 
106
- - [プラグインガイド](../../../docs/docs/reference/plugin-api.md)
106
+ - [プラグインガイド](../../../docs/docs/reference/plugin-api.ja.md)
107
107
 
package/dist/index.js CHANGED
@@ -8,6 +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
12
  var LIST_ITEM = /^\s*[-*+]\s+(.*)$/;
12
13
  var TASK_MARKER = /^\[([ xX])\]\s*(.*)$/;
13
14
  function parseKanban(source, options) {
@@ -18,8 +19,14 @@ function parseKanban(source, options) {
18
19
  `^\\s*${escapeRegExp(options.columnMarker)}\\s+(.+?)\\s*$`
19
20
  );
20
21
  let current = null;
21
- for (const rawLine of source.replace(/\r\n?/g, "\n").split("\n")) {
22
+ for (const { value: rawLine, inFence } of scanMarkdownFenceLines(
23
+ source.replace(/\r\n?/g, "\n")
24
+ )) {
22
25
  const line = rawLine.replace(/\s+$/, "");
26
+ if (inFence) {
27
+ fallback.push(line);
28
+ continue;
29
+ }
23
30
  if (line.trim() === "") continue;
24
31
  const columnName = line.match(heading)?.[1]?.trim();
25
32
  if (columnName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-kanban",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
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.19"
20
+ "@riebeckite/core": "0.0.21"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsx": "^4.22.4"
package/style.css CHANGED
@@ -142,8 +142,14 @@
142
142
  white-space: pre-wrap;
143
143
  }
144
144
 
145
- html[data-theme="dark"] .rb-kanban,
146
- html.dark .rb-kanban {
145
+ :is(:root, .rb-theme-root)[data-theme="dark"] .rb-kanban {
147
146
  --rb-kanban-ink: var(--rb-color-paper, #ffffff);
148
147
  --rb-kanban-paper: var(--rb-color-ink, #000000);
149
148
  }
149
+
150
+ @media (prefers-color-scheme: dark) {
151
+ :is(:root, .rb-theme-root):not([data-theme]) .rb-kanban {
152
+ --rb-kanban-ink: var(--rb-color-paper, #ffffff);
153
+ --rb-kanban-paper: var(--rb-color-ink, #000000);
154
+ }
155
+ }