@wenyan-md/core 1.0.8 → 1.0.9
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/browser/wenyan-core.js +29 -29
- package/dist/core.js +67 -64
- package/dist/{phycat-BGGT9oBk.js → phycat-C5ES4IMt.js} +53 -46
- package/dist/styles/wenyan-styles.js +56 -49
- package/dist/theme.js +1 -1
- package/dist/types/wrapper.d.ts +1 -1
- package/dist/wrapper.js +3 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
5
5
|
background-repeat: no-repeat;
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 16px;
|
|
8
|
-
}`,s=[{id:"default",name:"Default",description:"A clean, classic layout ideal for long-form reading.",appName:"默认",author:""},{id:"orangeheart",name:"OrangeHeart",description:"A vibrant and elegant theme in warm orange tones.",appName:"Orange Heart",author:"evgo2017"},{id:"rainbow",name:"Rainbow",description:"A colorful, lively theme with a clean layout.",appName:"Rainbow",author:"thezbm"},{id:"lapis",name:"Lapis",description:"A minimal and refreshing theme in cool blue tones.",appName:"Lapis",author:"YiNN"},{id:"pie",name:"Pie",description:"Inspired by sspai.com and Misty — modern, sharp, and stylish.",appName:"Pie",author:"kevinzhao2233"},{id:"maize",name:"Maize",description:"A crisp, light theme with a soft maize palette.",appName:"Maize",author:"BEATREE"},{id:"purple",name:"Purple",description:"Clean and minimalist, with a subtle purple accent.",appName:"Purple",author:"hliu202"},{id:"phycat",name:"Phycat",description:"物理猫-薄荷:a mint-green theme with clear structure and hierarchy.",appName:"物理猫-薄荷",author:"sumruler"}],r=Object.assign({"./themes/default.css":()=>Promise.resolve().then(()=>b).then(n=>n.default),"./themes/juejin_default.css":()=>Promise.resolve().then(()=>w).then(n=>n.default),"./themes/lapis.css":()=>Promise.resolve().then(()=>f).then(n=>n.default),"./themes/maize.css":()=>Promise.resolve().then(()=>y).then(n=>n.default),"./themes/medium_default.css":()=>Promise.resolve().then(()=>u).then(n=>n.default),"./themes/orangeheart.css":()=>Promise.resolve().then(()=>x).then(n=>n.default),"./themes/phycat.css":()=>Promise.resolve().then(()=>j).then(n=>n.default),"./themes/pie.css":()=>Promise.resolve().then(()=>k).then(n=>n.default),"./themes/purple.css":()=>Promise.resolve().then(()=>v).then(n=>n.default),"./themes/rainbow.css":()=>Promise.resolve().then(()=>z).then(n=>n.default),"./themes/toutiao_default.css":()=>Promise.resolve().then(()=>
|
|
8
|
+
}`,s=[{id:"default",name:"Default",description:"A clean, classic layout ideal for long-form reading.",appName:"默认",author:""},{id:"orangeheart",name:"OrangeHeart",description:"A vibrant and elegant theme in warm orange tones.",appName:"Orange Heart",author:"evgo2017"},{id:"rainbow",name:"Rainbow",description:"A colorful, lively theme with a clean layout.",appName:"Rainbow",author:"thezbm"},{id:"lapis",name:"Lapis",description:"A minimal and refreshing theme in cool blue tones.",appName:"Lapis",author:"YiNN"},{id:"pie",name:"Pie",description:"Inspired by sspai.com and Misty — modern, sharp, and stylish.",appName:"Pie",author:"kevinzhao2233"},{id:"maize",name:"Maize",description:"A crisp, light theme with a soft maize palette.",appName:"Maize",author:"BEATREE"},{id:"purple",name:"Purple",description:"Clean and minimalist, with a subtle purple accent.",appName:"Purple",author:"hliu202"},{id:"phycat",name:"Phycat",description:"物理猫-薄荷:a mint-green theme with clear structure and hierarchy.",appName:"物理猫-薄荷",author:"sumruler"}],r=Object.assign({"./themes/default.css":()=>Promise.resolve().then(()=>b).then(n=>n.default),"./themes/juejin_default.css":()=>Promise.resolve().then(()=>w).then(n=>n.default),"./themes/lapis.css":()=>Promise.resolve().then(()=>f).then(n=>n.default),"./themes/maize.css":()=>Promise.resolve().then(()=>y).then(n=>n.default),"./themes/medium_default.css":()=>Promise.resolve().then(()=>u).then(n=>n.default),"./themes/orangeheart.css":()=>Promise.resolve().then(()=>x).then(n=>n.default),"./themes/phycat.css":()=>Promise.resolve().then(()=>j).then(n=>n.default),"./themes/pie.css":()=>Promise.resolve().then(()=>k).then(n=>n.default),"./themes/purple.css":()=>Promise.resolve().then(()=>v).then(n=>n.default),"./themes/rainbow.css":()=>Promise.resolve().then(()=>z).then(n=>n.default),"./themes/toutiao_default.css":()=>Promise.resolve().then(()=>M).then(n=>n.default),"./themes/zhihu_default.css":()=>Promise.resolve().then(()=>_).then(n=>n.default)});function d(n){const l=`./themes/${n.id}.css`,o=r[l];return o?{...n,getCss:o}:(console.warn(`[Themes] CSS file not found for theme: ${n.id}`),null)}const t=Object.fromEntries(s.map(n=>d(n)).filter(n=>n!==null).map(n=>[n.id,n]));function h(){return Object.values(t)}const c=Object.fromEntries(["juejin_default","medium_default","toutiao_default","zhihu_default"].map(n=>[n,{id:n,name:"",description:"",appName:"",author:"",getCss:r[`./themes/${n}.css`]}])),p=[{id:"atom-one-dark"},{id:"atom-one-light"},{id:"dracula"},{id:"github-dark"},{id:"github"},{id:"monokai"},{id:"solarized-dark"},{id:"solarized-light"},{id:"xcode"}],m=Object.assign({"./highlight/styles/atom-one-dark.min.css":()=>Promise.resolve().then(()=>T).then(n=>n.default),"./highlight/styles/atom-one-light.min.css":()=>Promise.resolve().then(()=>I).then(n=>n.default),"./highlight/styles/dracula.min.css":()=>Promise.resolve().then(()=>N).then(n=>n.default),"./highlight/styles/github-dark.min.css":()=>Promise.resolve().then(()=>S).then(n=>n.default),"./highlight/styles/github.min.css":()=>Promise.resolve().then(()=>D).then(n=>n.default),"./highlight/styles/monokai.min.css":()=>Promise.resolve().then(()=>O).then(n=>n.default),"./highlight/styles/solarized-dark.min.css":()=>Promise.resolve().then(()=>A).then(n=>n.default),"./highlight/styles/solarized-light.min.css":()=>Promise.resolve().then(()=>L).then(n=>n.default),"./highlight/styles/xcode.min.css":()=>Promise.resolve().then(()=>C).then(n=>n.default)}),a={};for(const n of p){const l=`./highlight/styles/${n.id}.min.css`,o=m[l];o?a[n.id]={...n,getCss:o}:console.warn(`[Highlight Themes] CSS file not found for theme: ${n.id}`)}function g(){return Object.values(a)}(function(n){n.macStyleCss=i,n.themes=t,n.hlThemes=a})(typeof window<"u"?window:void 0);const b=Object.freeze(Object.defineProperty({__proto__:null,default:`/**
|
|
9
9
|
* 欢迎使用自定义主题功能,使用教程:
|
|
10
10
|
* https://babyno.top/posts/2024/11/wenyan-supports-customized-themes/
|
|
11
11
|
*/
|
|
@@ -1016,19 +1016,19 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1016
1016
|
* https://github.com/sumruler/typora-theme-phycat
|
|
1017
1017
|
*/
|
|
1018
1018
|
|
|
1019
|
-
|
|
1019
|
+
:root {
|
|
1020
1020
|
/* 标题后小图标,借鉴自思源笔记主题——Savor */
|
|
1021
1021
|
--h1-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h1_icon.svg")
|
|
1022
1022
|
no-repeat center;
|
|
1023
1023
|
--h2-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h2_icon.svg")
|
|
1024
1024
|
no-repeat center;
|
|
1025
|
-
--h3-r-graphic: url("
|
|
1025
|
+
--h3-r-graphic: url("data:image/svg+xml;utf8,<svg fill='rgba(74, 200, 141, 0.5)' height='28' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286z'/></svg>")
|
|
1026
1026
|
no-repeat center;
|
|
1027
|
-
--h4-r-graphic: url("
|
|
1027
|
+
--h4-r-graphic: url("data:image/svg+xml;utf8,<svg fill='rgba(74, 200, 141, 0.5)' height='24' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 22.857c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286z'/></svg>")
|
|
1028
1028
|
no-repeat center;
|
|
1029
|
-
--h5-r-graphic: url("
|
|
1029
|
+
--h5-r-graphic: url("data:image/svg+xml;utf8,<svg fill='rgba(74, 200, 141, 0.5)' height='24' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 22.857c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286zM4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 11.429c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286z'/></svg>")
|
|
1030
1030
|
no-repeat center;
|
|
1031
|
-
--h6-r-graphic: url("
|
|
1031
|
+
--h6-r-graphic: url("data:image/svg+xml;utf8,<svg fill='rgba(74, 200, 141, 0.5)' height='24' viewBox='0 0 32 32' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M4.571 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM4.571 11.429c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 18.286c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 25.143c-1.257 0-2.286 1.029-2.286 2.286s1.029 2.286 2.286 2.286 2.286-1.029 2.286-2.286-1.029-2.286-2.286-2.286zM11.429 16c1.257 0 2.286-1.029 2.286-2.286s-1.029-2.286-2.286-2.286-2.286 1.029-2.286 2.286 1.029 2.286 2.286 2.286z'/></svg>")
|
|
1032
1032
|
no-repeat center;
|
|
1033
1033
|
|
|
1034
1034
|
/* 是否开启网格背景?1 是;0 否 */
|
|
@@ -1060,7 +1060,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
#wenyan {
|
|
1062
1062
|
font-size: 14px;
|
|
1063
|
-
font-family:var(--sans-serif-font);
|
|
1063
|
+
font-family: var(--sans-serif-font);
|
|
1064
1064
|
margin: 0 auto;
|
|
1065
1065
|
padding: 15px;
|
|
1066
1066
|
line-height: 1.75;
|
|
@@ -1069,17 +1069,21 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1069
1069
|
word-break: break-word;
|
|
1070
1070
|
word-wrap: break-word;
|
|
1071
1071
|
text-align: left;
|
|
1072
|
-
background-image: linear-gradient(
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1072
|
+
background-image: linear-gradient(
|
|
1073
|
+
90deg,
|
|
1074
|
+
rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
|
|
1075
|
+
rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
|
|
1076
|
+
),
|
|
1077
|
+
linear-gradient(
|
|
1078
|
+
360deg,
|
|
1079
|
+
rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
|
|
1080
|
+
rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
|
|
1081
|
+
);
|
|
1082
|
+
background-size: 20px 20px;
|
|
1083
|
+
background-position: center center;
|
|
1080
1084
|
}
|
|
1081
1085
|
#wenyan p {
|
|
1082
|
-
text-align:justify;
|
|
1086
|
+
text-align: justify;
|
|
1083
1087
|
color: #333;
|
|
1084
1088
|
margin: 10px 10px;
|
|
1085
1089
|
word-spacing: 2px;
|
|
@@ -1088,7 +1092,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1088
1092
|
#wenyan h4::after,
|
|
1089
1093
|
#wenyan h5::after,
|
|
1090
1094
|
#wenyan h6::after {
|
|
1091
|
-
content:
|
|
1095
|
+
content: "";
|
|
1092
1096
|
margin-left: 0.2em;
|
|
1093
1097
|
height: 2em;
|
|
1094
1098
|
width: 1.2em;
|
|
@@ -1126,9 +1130,12 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1126
1130
|
background: var(--head-title-h2-background);
|
|
1127
1131
|
background-size: 200% 100%;
|
|
1128
1132
|
background-position: 0% 0%;
|
|
1129
|
-
|
|
1133
|
+
display: inline-block;
|
|
1130
1134
|
}
|
|
1131
|
-
#wenyan h3,
|
|
1135
|
+
#wenyan h3,
|
|
1136
|
+
h4,
|
|
1137
|
+
h5,
|
|
1138
|
+
h6 {
|
|
1132
1139
|
font-weight: bold;
|
|
1133
1140
|
display: flex;
|
|
1134
1141
|
align-items: top;
|
|
@@ -1148,7 +1155,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1148
1155
|
font-size: 1.15em;
|
|
1149
1156
|
}
|
|
1150
1157
|
#wenyan h4::before {
|
|
1151
|
-
content:
|
|
1158
|
+
content: "";
|
|
1152
1159
|
margin-right: 7px;
|
|
1153
1160
|
margin-top: 8px;
|
|
1154
1161
|
background-color: var(--head-title-color);
|
|
@@ -1162,7 +1169,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1162
1169
|
font-size: 1.1em;
|
|
1163
1170
|
}
|
|
1164
1171
|
#wenyan h5::before {
|
|
1165
|
-
content:
|
|
1172
|
+
content: "";
|
|
1166
1173
|
margin-right: 7px;
|
|
1167
1174
|
margin-top: 8px;
|
|
1168
1175
|
display: inline-block;
|
|
@@ -1177,60 +1184,60 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1177
1184
|
font-size: 1.1em;
|
|
1178
1185
|
}
|
|
1179
1186
|
#wenyan h6::before {
|
|
1180
|
-
content:
|
|
1187
|
+
content: "⁘";
|
|
1181
1188
|
color: var(--head-title-color);
|
|
1182
1189
|
margin-right: 7px;
|
|
1183
1190
|
}
|
|
1184
1191
|
|
|
1185
1192
|
#wenyan ol {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1193
|
+
margin-left: 2px;
|
|
1194
|
+
padding-left: 12px;
|
|
1195
|
+
margin-bottom: 0px;
|
|
1196
|
+
margin-top: 0px;
|
|
1190
1197
|
}
|
|
1191
1198
|
|
|
1192
1199
|
#wenyan ul {
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1200
|
+
list-style-type: disc;
|
|
1201
|
+
margin-bottom: 0px;
|
|
1202
|
+
margin-top: 0px;
|
|
1196
1203
|
}
|
|
1197
1204
|
|
|
1198
1205
|
#wenyan ul ul {
|
|
1199
|
-
|
|
1206
|
+
list-style-type: circle;
|
|
1200
1207
|
}
|
|
1201
1208
|
|
|
1202
1209
|
#wenyan ul ul ul {
|
|
1203
|
-
|
|
1210
|
+
list-style-type: square;
|
|
1204
1211
|
}
|
|
1205
1212
|
|
|
1206
1213
|
#wenyan ol {
|
|
1207
|
-
|
|
1208
|
-
|
|
1214
|
+
padding-left: 27px;
|
|
1215
|
+
list-style-type: decimal;
|
|
1209
1216
|
}
|
|
1210
1217
|
#wenyan ol ol {
|
|
1211
|
-
|
|
1218
|
+
list-style-type: lower-alpha;
|
|
1212
1219
|
}
|
|
1213
1220
|
#wenyan ol ol ol {
|
|
1214
|
-
|
|
1221
|
+
list-style-type: lower-roman;
|
|
1215
1222
|
}
|
|
1216
1223
|
|
|
1217
1224
|
#wenyan li {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1225
|
+
color: #333;
|
|
1226
|
+
margin: 0px 6px;
|
|
1227
|
+
word-spacing: 2px;
|
|
1228
|
+
line-height: 2.5;
|
|
1222
1229
|
}
|
|
1223
1230
|
|
|
1224
1231
|
#wenyan li {
|
|
1225
|
-
|
|
1232
|
+
position: relative;
|
|
1226
1233
|
}
|
|
1227
|
-
#wenyan li > p{
|
|
1228
|
-
|
|
1234
|
+
#wenyan li > p {
|
|
1235
|
+
margin: 0;
|
|
1229
1236
|
}
|
|
1230
1237
|
#wenyan blockquote {
|
|
1231
|
-
font-size:12px;
|
|
1238
|
+
font-size: 12px;
|
|
1232
1239
|
margin-left: 12px;
|
|
1233
|
-
text-align:justify;
|
|
1240
|
+
text-align: justify;
|
|
1234
1241
|
padding: 12px;
|
|
1235
1242
|
background: var(--element-color-soo-shallow);
|
|
1236
1243
|
border: 0px solid var(--element-color);
|
|
@@ -1268,7 +1275,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1268
1275
|
}
|
|
1269
1276
|
#wenyan img {
|
|
1270
1277
|
max-width: 90%;
|
|
1271
|
-
display:block;
|
|
1278
|
+
display: block;
|
|
1272
1279
|
border-radius: 6px;
|
|
1273
1280
|
margin: 10px auto;
|
|
1274
1281
|
object-fit: contain;
|
|
@@ -1288,14 +1295,14 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1288
1295
|
border-radius: 5px;
|
|
1289
1296
|
line-height: 2;
|
|
1290
1297
|
margin: 1em 0.5em;
|
|
1291
|
-
padding: .5em;
|
|
1298
|
+
padding: 0.5em;
|
|
1292
1299
|
box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
|
|
1293
1300
|
}
|
|
1294
1301
|
#wenyan pre code {
|
|
1295
1302
|
font-family: var(--monospace-font);
|
|
1296
1303
|
display: block;
|
|
1297
1304
|
overflow-x: auto;
|
|
1298
|
-
margin: .5em;
|
|
1305
|
+
margin: 0.5em;
|
|
1299
1306
|
padding: 0;
|
|
1300
1307
|
}
|
|
1301
1308
|
#wenyan table {
|
|
@@ -1920,7 +1927,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
1920
1927
|
word-wrap: break-word;
|
|
1921
1928
|
word-break: break-all;
|
|
1922
1929
|
}
|
|
1923
|
-
`},Symbol.toStringTag,{value:"Module"})),
|
|
1930
|
+
`},Symbol.toStringTag,{value:"Module"})),M=Object.freeze(Object.defineProperty({__proto__:null,default:`:root {
|
|
1924
1931
|
--sans-serif-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
|
|
1925
1932
|
"Noto Color Emoji";
|
|
1926
1933
|
--monospace-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "liberation mono", "courier new", monospace;
|
|
@@ -2067,7 +2074,7 @@ var WenyanStyles=(function(e){"use strict";const i=`#wenyan pre::before {
|
|
|
2067
2074
|
#wenyan .footnote {
|
|
2068
2075
|
color: #0069c2;
|
|
2069
2076
|
}
|
|
2070
|
-
`},Symbol.toStringTag,{value:"Module"})),
|
|
2077
|
+
`},Symbol.toStringTag,{value:"Module"})),_=Object.freeze(Object.defineProperty({__proto__:null,default:`:root {
|
|
2071
2078
|
--sans-serif-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
|
|
2072
2079
|
"Noto Color Emoji";
|
|
2073
2080
|
--monospace-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "liberation mono", "courier new", monospace;
|
package/dist/theme.js
CHANGED
|
@@ -62,7 +62,7 @@ const i = [
|
|
|
62
62
|
"./themes/maize.css": () => import("./maize-DFW0x6O3.js").then((e) => e.default),
|
|
63
63
|
"./themes/medium_default.css": () => import("./medium_default-BXHGUKdY.js").then((e) => e.default),
|
|
64
64
|
"./themes/orangeheart.css": () => import("./orangeheart-Da7uQj8U.js").then((e) => e.default),
|
|
65
|
-
"./themes/phycat.css": () => import("./phycat-
|
|
65
|
+
"./themes/phycat.css": () => import("./phycat-C5ES4IMt.js").then((e) => e.default),
|
|
66
66
|
"./themes/pie.css": () => import("./pie-DUYodGli.js").then((e) => e.default),
|
|
67
67
|
"./themes/purple.css": () => import("./purple-Da1-Vfos.js").then((e) => e.default),
|
|
68
68
|
"./themes/rainbow.css": () => import("./rainbow-BtrbZco6.js").then((e) => e.default),
|
package/dist/types/wrapper.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export type GzhContent = {
|
|
|
4
4
|
content: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getGzhContent(content: string, themeId: string, hlThemeId: string, isMacStyle
|
|
7
|
+
export declare function getGzhContent(content: string, themeId: string, hlThemeId: string, isMacStyle?: boolean, isAddFootnote?: boolean): Promise<GzhContent>;
|
package/dist/wrapper.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSDOM as m } from "jsdom";
|
|
2
|
-
import { configureMarked as s, handleFrontMatter as
|
|
3
|
-
async function g(n, e, o, r, c) {
|
|
2
|
+
import { configureMarked as s, handleFrontMatter as u, renderMarkdown as w, getContentForGzhBuiltinTheme as l } from "./core.js";
|
|
3
|
+
async function g(n, e, o, r = !0, c = !0) {
|
|
4
4
|
s();
|
|
5
|
-
const t =
|
|
5
|
+
const t = u(n), d = await w(t.body), i = new m(`<body><section id="wenyan">${d}</section></body>`).window.document.getElementById("wenyan"), a = await l(i, e, o, r, c);
|
|
6
6
|
return {
|
|
7
7
|
title: t.title,
|
|
8
8
|
cover: t.cover,
|
package/package.json
CHANGED