@hyperbook/markdown 0.44.1 → 0.46.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/assets/client.js +32 -27
- package/dist/assets/directive-collapsible/style.css +19 -23
- package/dist/assets/directive-tabs/client.js +31 -27
- package/dist/assets/directive-tabs/style.css +95 -12
- package/dist/assets/directive-typst/client.js +631 -0
- package/dist/assets/directive-typst/style.css +466 -0
- package/dist/assets/prism/prism-typst.js +182 -0
- package/dist/assets/shell.css +55 -22
- package/dist/assets/store.js +2 -1
- package/dist/assets/uzip/uzip.js +1538 -0
- package/dist/index.js +548 -89
- package/dist/index.js.map +4 -4
- package/dist/locales/de.json +21 -1
- package/dist/locales/en.json +21 -1
- package/dist/remarkDirectiveTypst.d.ts +5 -0
- package/package.json +1 -1
package/dist/assets/shell.css
CHANGED
|
@@ -33,6 +33,43 @@ side-drawer {
|
|
|
33
33
|
width: 500px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/* Hide side-drawer when JavaScript is disabled */
|
|
37
|
+
.no-js side-drawer {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Hide mobile nav toggle when JavaScript is disabled */
|
|
42
|
+
.no-js .mobile-nav .toggle {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Hide TOC toggle when JavaScript is disabled */
|
|
47
|
+
.no-js #toc-toggle {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Hide search button when JavaScript is disabled */
|
|
52
|
+
.no-js #search-toggle {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Hide share button when JavaScript is disabled */
|
|
57
|
+
.no-js #share-button {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Hide QR code button when JavaScript is disabled */
|
|
62
|
+
.no-js #qrcode-open {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Hide export/import/reset links when JavaScript is disabled */
|
|
67
|
+
.no-js .export-icon,
|
|
68
|
+
.no-js .import-icon,
|
|
69
|
+
.no-js .reset-icon {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
36
73
|
#nav-drawer {
|
|
37
74
|
background: var(--color-nav);
|
|
38
75
|
border-right-color: var(--color-nav-border);
|
|
@@ -588,7 +625,7 @@ nav li+li {
|
|
|
588
625
|
margin-top: 4px;
|
|
589
626
|
}
|
|
590
627
|
|
|
591
|
-
.section
|
|
628
|
+
.section summary.name {
|
|
592
629
|
display: flex;
|
|
593
630
|
text-decoration: none;
|
|
594
631
|
padding: 10px;
|
|
@@ -596,48 +633,44 @@ nav li+li {
|
|
|
596
633
|
border-style: solid;
|
|
597
634
|
width: 100%;
|
|
598
635
|
user-select: none;
|
|
636
|
+
cursor: pointer;
|
|
637
|
+
list-style: none;
|
|
599
638
|
}
|
|
600
639
|
|
|
601
|
-
.section
|
|
640
|
+
.section summary.name::-webkit-details-marker {
|
|
641
|
+
display: none;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.section summary.name::marker {
|
|
645
|
+
display: none;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.section summary.name>.label {
|
|
602
649
|
flex: 1;
|
|
603
650
|
text-decoration: none;
|
|
604
651
|
}
|
|
605
652
|
|
|
606
|
-
.section
|
|
607
|
-
|
|
608
|
-
background: none;
|
|
609
|
-
border: none;
|
|
610
|
-
font-size: 13px;
|
|
653
|
+
.section.empty summary.name {
|
|
654
|
+
cursor: default;
|
|
611
655
|
}
|
|
612
656
|
|
|
613
|
-
.
|
|
614
|
-
|
|
657
|
+
.section.empty summary.name .label {
|
|
658
|
+
font-style: italic;
|
|
615
659
|
}
|
|
616
660
|
|
|
617
|
-
.
|
|
661
|
+
.section summary.name:after {
|
|
618
662
|
content: "\002B";
|
|
619
663
|
width: 1.2rem;
|
|
620
664
|
color: var(--color-text);
|
|
621
665
|
font-weight: bold;
|
|
622
666
|
text-align: right;
|
|
623
|
-
float: right;
|
|
624
667
|
margin-left: 5px;
|
|
625
668
|
}
|
|
626
669
|
|
|
627
|
-
.
|
|
670
|
+
.section[open] summary.name:after {
|
|
628
671
|
content: "\2212";
|
|
629
672
|
}
|
|
630
673
|
|
|
631
|
-
.collapsible-content {
|
|
632
|
-
display: none;
|
|
633
|
-
opacity: 0;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
.collapsible.expanded+.collapsible-content {
|
|
637
|
-
display: block;
|
|
638
|
-
opacity: 1;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
674
|
.section .section {
|
|
642
675
|
margin-left: 16px;
|
|
643
676
|
margin-bottom: 0px;
|
package/dist/assets/store.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @type {import("dexie").Dexie}
|
|
3
3
|
*/
|
|
4
4
|
var store = new Dexie("Hyperbook");
|
|
5
|
-
store.version(
|
|
5
|
+
store.version(2).stores({
|
|
6
6
|
currentState: `
|
|
7
7
|
id,
|
|
8
8
|
path,
|
|
@@ -30,6 +30,7 @@ store.version(1).stores({
|
|
|
30
30
|
textinput: `id,text`,
|
|
31
31
|
custom: `id,payload`,
|
|
32
32
|
multievent: `id,state`,
|
|
33
|
+
typst: `id,code`,
|
|
33
34
|
});
|
|
34
35
|
var sqlIdeDB = new Dexie("SQL-IDE");
|
|
35
36
|
sqlIdeDB.version(0.1).stores({
|