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.
- package/dist/{index_mdit-CE73u7cg.cjs → ABConvertEvent-Bka43YZF.cjs} +1589 -316
- package/dist/{index_mdit-DeveGzkz.js → ABConvertEvent-DXDgKtXz.js} +1589 -316
- package/dist/mdit-any-block.cjs +6 -6
- package/dist/mdit-any-block.js +1 -1
- package/dist/mdit-any-block.node.cjs +8 -8
- package/dist/mdit-any-block.node.js +2 -2
- package/package.json +1 -1
- package/styles.css +19 -11
- package/tsconfig.json +1 -4
package/dist/mdit-any-block.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
exports.ABConvertManager =
|
|
5
|
-
exports.ABReg =
|
|
6
|
-
exports.abConvertEvent =
|
|
7
|
-
exports.ab_mdit =
|
|
8
|
-
exports.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
|
package/dist/mdit-any-block.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
39
|
-
|
|
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 =
|
|
68
|
-
exports.ABReg =
|
|
69
|
-
exports.abConvertEvent =
|
|
70
|
-
exports.ab_mdit =
|
|
71
|
-
exports.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 "./
|
|
2
|
-
import { d, A, c, a, b } from "./
|
|
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.
|
|
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:
|
|
452
|
-
height:
|
|
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-
|
|
710
|
-
|
|
711
|
-
|
|
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;
|