markdown-it-any-block 3.4.4 → 3.5.0

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,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index_mdit = require("./index_mdit-CE73u7cg.cjs");
4
- exports.ABConvertManager = index_mdit.ABConvertManager;
5
- exports.ABReg = index_mdit.ABReg;
6
- exports.abConvertEvent = index_mdit.abConvertEvent;
7
- exports.ab_mdit = index_mdit.ab_mdit;
8
- exports.ab_mdit_client = index_mdit.ab_mdit_client;
3
+ const ABConvertEvent = require("./ABConvertEvent-Bka43YZF.cjs");
4
+ exports.ABConvertManager = ABConvertEvent.ABConvertManager;
5
+ exports.ABReg = ABConvertEvent.ABReg;
6
+ exports.abConvertEvent = ABConvertEvent.abConvertEvent;
7
+ exports.ab_mdit = ABConvertEvent.ab_mdit;
8
+ exports.ab_mdit_client = ABConvertEvent.ab_mdit_client;
9
9
  //# sourceMappingURL=mdit-any-block.cjs.map
@@ -1,4 +1,4 @@
1
- import { d, A, c, a, b } from "./index_mdit-DeveGzkz.js";
1
+ import { d, A, c, a, b } from "./ABConvertEvent-DXDgKtXz.js";
2
2
  export {
3
3
  d as ABConvertManager,
4
4
  A as ABReg,
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- const index_mdit = require("./index_mdit-CE73u7cg.cjs");
25
+ const ABConvertEvent = require("./ABConvertEvent-Bka43YZF.cjs");
26
26
  let dom = null;
27
27
  let disable_disable_flag = false;
28
28
  async function jsdom_init(enable = true, disable_disable = false) {
@@ -35,8 +35,8 @@ async function jsdom_init(enable = true, disable_disable = false) {
35
35
  // @warn 若缺少该行,则在mdit+build环境下,编译报错
36
36
  });
37
37
  if (enable) jsdom_enable();
38
- index_mdit.jsdom_api.jsdom_enable = jsdom_enable;
39
- index_mdit.jsdom_api.jsdom_disable = jsdom_disable;
38
+ ABConvertEvent.jsdom_api.jsdom_enable = jsdom_enable;
39
+ ABConvertEvent.jsdom_api.jsdom_disable = jsdom_disable;
40
40
  }
41
41
  function jsdom_enable() {
42
42
  if (!dom) return;
@@ -64,10 +64,10 @@ function jsdom_disable() {
64
64
  global.history = void 0;
65
65
  global.document = void 0;
66
66
  }
67
- exports.ABConvertManager = index_mdit.ABConvertManager;
68
- exports.ABReg = index_mdit.ABReg;
69
- exports.abConvertEvent = index_mdit.abConvertEvent;
70
- exports.ab_mdit = index_mdit.ab_mdit;
71
- exports.ab_mdit_client = index_mdit.ab_mdit_client;
67
+ exports.ABConvertManager = ABConvertEvent.ABConvertManager;
68
+ exports.ABReg = ABConvertEvent.ABReg;
69
+ exports.abConvertEvent = ABConvertEvent.abConvertEvent;
70
+ exports.ab_mdit = ABConvertEvent.ab_mdit;
71
+ exports.ab_mdit_client = ABConvertEvent.ab_mdit_client;
72
72
  exports.jsdom_init = jsdom_init;
73
73
  //# sourceMappingURL=mdit-any-block.node.cjs.map
@@ -1,5 +1,5 @@
1
- import { j as jsdom_api } from "./index_mdit-DeveGzkz.js";
2
- import { d, A, c, a, b } from "./index_mdit-DeveGzkz.js";
1
+ import { j as jsdom_api } from "./ABConvertEvent-DXDgKtXz.js";
2
+ import { d, A, c, a, b } from "./ABConvertEvent-DXDgKtXz.js";
3
3
  let dom = null;
4
4
  let disable_disable_flag = false;
5
5
  async function jsdom_init(enable = true, disable_disable = false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-it-any-block",
3
- "version": "3.4.4",
3
+ "version": "3.5.0",
4
4
  "description": "You can flexibility to create a 'Block' by many means. It also provides many useful features, like `list to table`. (obsidian/markdown-it/vuepress plugin/app)",
5
5
  "types": "@types/index_mdit.d.ts",
6
6
  "type": "module",
package/styles.css CHANGED
@@ -78,6 +78,10 @@ html[data-theme=dark] #app {
78
78
  --color-pink: #fa99cd;
79
79
  }
80
80
 
81
+ .ab-hide {
82
+ display: none !important;
83
+ }
84
+
81
85
  /**
82
86
  * obsidian各模式下的微调
83
87
  *
@@ -284,12 +288,14 @@ html[data-theme=dark] #app {
284
288
  .ab-note table.ab-table td, .ab-note table.ab-table th {
285
289
  white-space: normal;
286
290
  overflow-wrap: break-word;
287
- padding: 2px 5px;
288
- border: solid var(--ab-table-border-width) var(--ab-table-border-color);
289
291
  }
290
292
  .ab-note table.ab-table td code, .ab-note table.ab-table th code {
291
293
  white-space: pre;
292
294
  }
295
+ .ab-note table.ab-table td, .ab-note table.ab-table th {
296
+ padding: 2px 5px;
297
+ border: solid var(--ab-table-border-width) var(--ab-table-border-color);
298
+ }
293
299
  .ab-note table.ab-table tr {
294
300
  background: none;
295
301
  }
@@ -448,8 +454,8 @@ html[data-theme=dark] #app {
448
454
  padding-top: 4px;
449
455
  }
450
456
  .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr .ab-list-table-svg svg {
451
- width: 14px;
452
- height: 14px;
457
+ width: 13px;
458
+ height: 16px;
453
459
  fill: var(--ab-bright-color);
454
460
  }
455
461
  .ab-note table.ab-list-table.ab-table-folder .ab-foldable-tr td:first-child {
@@ -683,6 +689,12 @@ html[data-theme=dark] #app {
683
689
  column-count: 4;
684
690
  -moz-column-gap: 10px;
685
691
  column-gap: 10px;
692
+ }
693
+ .ab-note .ab-items.ab-card.ab-lay-vfall:not(.ab-hfall) .ab-items-item {
694
+ -moz-column-break-inside: avoid;
695
+ break-inside: avoid-column;
696
+ }
697
+ .ab-note .ab-items.ab-card.ab-lay-vfall:not(.ab-hfall) {
686
698
  /*display: grid;
687
699
  grid-template-columns: repeat(4, 1fr);
688
700
  grid-gap: 1rem; // 间隙
@@ -706,19 +718,15 @@ html[data-theme=dark] #app {
706
718
  &:nth-child(4n+0){ order: 4; }
707
719
  }*/
708
720
  }
709
- .ab-note .ab-items.ab-card.ab-lay-vfall:not(.ab-hfall) .ab-items-item {
710
- -moz-column-break-inside: avoid;
711
- break-inside: avoid-column;
721
+ .ab-note .ab-items.ab-card.ab-lay-hfall .ab-items-item .ab-items-title {
722
+ color: currentColor;
723
+ border-bottom: none;
712
724
  }
713
725
  .ab-note .ab-items.ab-card.ab-lay-hfall {
714
726
  display: flex;
715
727
  flex-wrap: wrap;
716
728
  flex-direction: row;
717
729
  }
718
- .ab-note .ab-items.ab-card.ab-lay-hfall .ab-items-item .ab-items-title {
719
- color: currentColor;
720
- border-bottom: none;
721
- }
722
730
  .ab-note .ab-items.ab-card.ab-lay-hfall::after {
723
731
  content: "";
724
732
  flex-grow: 99999;
package/tsconfig.json CHANGED
@@ -1,9 +1,6 @@
1
1
  {
2
+ "extends": "../../tsconfig.base.json",
2
3
  "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "@/*": ["../../src/*"]
6
- },
7
4
  "inlineSourceMap": true,
8
5
  "inlineSources": true,
9
6
  "module": "ESNext",