@wenyan-md/core 1.0.7 → 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/core.js CHANGED
@@ -1,71 +1,74 @@
1
- import { marked as m } from "marked";
2
- import { markedHighlight as H } from "marked-highlight";
1
+ import { Marked as H } from "marked";
2
+ import { markedHighlight as P } from "marked-highlight";
3
3
  import x from "highlight.js";
4
- import P from "front-matter";
4
+ import j from "front-matter";
5
5
  import * as f from "css-tree";
6
6
  import { mathjax as V } from "mathjax-full/js/mathjax.js";
7
- import { TeX as j } from "mathjax-full/js/input/tex.js";
8
- import { SVG as q } from "mathjax-full/js/output/svg.js";
9
- import { liteAdaptor as I } from "mathjax-full/js/adaptors/liteAdaptor.js";
7
+ import { TeX as q } from "mathjax-full/js/input/tex.js";
8
+ import { SVG as I } from "mathjax-full/js/output/svg.js";
9
+ import { liteAdaptor as R } from "mathjax-full/js/adaptors/liteAdaptor.js";
10
10
  import { RegisterHTMLHandler as S } from "mathjax-full/js/handlers/html.js";
11
- import { AllPackages as R } from "mathjax-full/js/input/tex/AllPackages.js";
11
+ import { AllPackages as z } from "mathjax-full/js/input/tex/AllPackages.js";
12
12
  import { themes as b } from "./theme.js";
13
13
  import { hlThemes as C } from "./hltheme.js";
14
- const z = {
14
+ const N = {
15
15
  inlineMath: [["$", "$"], ["\\(", "\\)"]],
16
16
  displayMath: [["$$", "$$"], ["\\[", "\\]"]],
17
17
  processEscapes: !0,
18
- packages: R
19
- }, N = {
18
+ packages: z
19
+ }, D = {
20
20
  fontCache: "none"
21
21
  };
22
- let g;
23
- if (!g) {
24
- g = I();
22
+ let m;
23
+ if (!m) {
24
+ m = R();
25
25
  try {
26
- S(g);
26
+ S(m);
27
27
  } catch {
28
28
  }
29
29
  }
30
- S(g);
31
- const D = new j(z), E = new q(N);
32
- function A(r, n) {
30
+ S(m);
31
+ const E = new q(N), F = new I(D);
32
+ function M(r, n) {
33
33
  const a = r.display ? "section" : "span", e = r.display ? "block-equation" : "inline-equation";
34
34
  r.typesetRoot = n.adaptor.node(a, { class: e }, [r.typesetRoot]);
35
35
  }
36
- async function F(r) {
36
+ async function G(r) {
37
37
  try {
38
38
  const n = V.document(r, {
39
- InputJax: D,
40
- OutputJax: E,
39
+ InputJax: E,
40
+ OutputJax: F,
41
41
  renderActions: {
42
42
  addContainer: [190, (e) => {
43
43
  for (const s of e.math)
44
- A(s, e);
45
- }, A]
44
+ M(s, e);
45
+ }, M]
46
46
  }
47
47
  });
48
48
  n.render();
49
- const a = g.body(n.document);
50
- return g.innerHTML(a);
49
+ const a = m.body(n.document);
50
+ return m.innerHTML(a);
51
51
  } catch (n) {
52
52
  throw console.error("Error rendering MathJax:", n), n;
53
53
  }
54
54
  }
55
- const G = `#wenyan pre::before {
55
+ const B = `#wenyan pre::before {
56
56
  display: block;
57
57
  content: "";
58
58
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="45" height="12" viewBox="0 0 450 130"><ellipse cx="65" cy="65" rx="50" ry="52" stroke="rgb(220,60,54)" stroke-width="2" fill="rgb(237,108,96)"/><ellipse cx="225" cy="65" rx="50" ry="52" stroke="rgb(218,151,33)" stroke-width="2" fill="rgb(247,193,81)"/><ellipse cx="385" cy="65" rx="50" ry="52" stroke="rgb(27,161,37)" stroke-width="2" fill="rgb(100,200,86)"/></svg>');
59
59
  background-repeat: no-repeat;
60
60
  width: 100%;
61
61
  height: 16px;
62
- }`, ie = "ui-serif, Georgia, Cambria, 'Noto Serif', 'Times New Roman', serif", B = "ui-sans-serif, system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', 'Roboto', sans-serif", L = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace";
63
- function le() {
64
- m.use(
65
- H({
62
+ }`, le = "ui-serif, Georgia, Cambria, 'Noto Serif', 'Times New Roman', serif", J = "ui-sans-serif, system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', 'Roboto', sans-serif", L = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace";
63
+ let g;
64
+ function ce() {
65
+ g = new H(
66
+ P({
67
+ emptyLangClass: "hljs",
66
68
  langPrefix: "hljs language-",
67
- highlight: function(e, s) {
68
- return s = x.getLanguage(s) ? s : "plaintext", x.highlight(e, { language: s }).value;
69
+ highlight: function(e, s, o) {
70
+ const l = x.getLanguage(s) ? s : "plaintext";
71
+ return x.highlight(e, { language: l }).value;
69
72
  }
70
73
  })
71
74
  );
@@ -87,14 +90,14 @@ function le() {
87
90
  };
88
91
  },
89
92
  renderer(e) {
90
- const s = J(e.attrs), o = Array.from(s).map(
93
+ const s = O(e.attrs), o = Array.from(s).map(
91
94
  ([l, t]) => /^\d+$/.test(t) ? `${l}:${t}px` : `${l}:${t}`
92
95
  ).join("; ");
93
96
  return `<img src="${e.href}" alt="${e.alt}" style="${o}">`;
94
97
  }
95
98
  };
96
- m.use({ extensions: [r] });
97
- const n = m.Renderer, a = m.Parser;
99
+ g.use({ extensions: [r] });
100
+ const n = g.Renderer, a = g.Parser;
98
101
  n.heading = function(e) {
99
102
  const s = a.parseInline(e.tokens), o = e.depth;
100
103
  return `<h${o}><span>${s}</span></h${o}>
@@ -106,28 +109,28 @@ function le() {
106
109
  `;
107
110
  }, n.image = function(e, s, o) {
108
111
  return `<img src="${e.href}" alt="${o || ""}" title="${s || o || ""}">`;
109
- }, m.use({ renderer: n });
112
+ }, g.use({ renderer: n });
110
113
  }
111
- function J(r) {
114
+ function O(r) {
112
115
  const n = /* @__PURE__ */ new Map();
113
116
  return r.split(/\s+/).forEach((a) => {
114
117
  const [e, s] = a.split("=");
115
118
  e && s && n.set(e, s.replace(/^["']|["']$/g, ""));
116
119
  }), n;
117
120
  }
118
- function ce(r) {
119
- const { attributes: n, body: a } = P(r), e = {};
121
+ function pe(r) {
122
+ const { attributes: n, body: a } = j(r), e = {};
120
123
  let s = "";
121
124
  const { title: o, description: l, cover: t } = n;
122
125
  return o && (e.title = o), l && (s += "> " + l + `
123
126
 
124
127
  `, e.description = l), t && (e.cover = t), e.body = s + a, e;
125
128
  }
126
- async function pe(r) {
127
- const n = m.parse(r);
128
- return await F(n);
129
+ async function fe(r) {
130
+ const n = g.parse(r);
131
+ return await G(n);
129
132
  }
130
- async function fe(r, n, a, e, s) {
133
+ async function ue(r, n, a, e = !0, s = !0) {
131
134
  let o = b.default;
132
135
  if (n && (o = b[n], o || (o = Object.values(b).find(
133
136
  (c) => c.name.toLowerCase() === n.toLowerCase()
@@ -135,11 +138,11 @@ async function fe(r, n, a, e, s) {
135
138
  throw new Error("主题不存在");
136
139
  if (!(a in C))
137
140
  throw new Error("代码块主题不存在");
138
- const l = U(await o.getCss()), i = await C[a].getCss();
139
- return O(r, l, i, e, s);
141
+ const l = W(await o.getCss()), i = await C[a].getCss();
142
+ return U(r, l, i, e, s);
140
143
  }
141
- async function O(r, n, a, e, s) {
142
- s && Y(!1, r), n = W(n, {
144
+ async function U(r, n, a, e = !0, s = !0) {
145
+ s && Z(!1, r), n = Y(n, {
143
146
  "#wenyan pre code": [
144
147
  {
145
148
  property: "font-family",
@@ -169,7 +172,7 @@ async function O(r, n, a, e, s) {
169
172
  parseValue: !1
170
173
  });
171
174
  if (o.children.appendList(l.children), e) {
172
- const i = f.parse(G, {
175
+ const i = f.parse(B, {
173
176
  context: "stylesheet",
174
177
  positions: !1,
175
178
  parseAtrulePrelude: !1,
@@ -210,12 +213,12 @@ async function O(r, n, a, e, s) {
210
213
  visit: "Rule",
211
214
  enter(u) {
212
215
  const d = f.generate(u.prelude), h = i.tagName.toLowerCase();
213
- d.includes(`${h}::after`) ? M(u, c) : d.includes(`${h}::before`) && M(u, p);
216
+ d.includes(`${h}::after`) ? A(u, c) : d.includes(`${h}::before`) && A(u, p);
214
217
  }
215
218
  }), c.size > 0 && i.appendChild(k(c, r.ownerDocument)), p.size > 0 && i.insertBefore(k(p, r.ownerDocument), i.firstChild);
216
219
  }), r.setAttribute("data-provider", "WenYan"), `${r.outerHTML.replace(/class="mjx-solid"/g, 'fill="none" stroke-width="70"')}`;
217
220
  }
218
- function U(r) {
221
+ function W(r) {
219
222
  const n = /--([a-zA-Z0-9\-]+):\s*([^;()]*\((?:[^()]*|\([^()]*\))*\)[^;()]*|[^;]+);/g, a = /var\(--([a-zA-Z0-9\-]+)\)/g, e = {};
220
223
  let s;
221
224
  for (; (s = n.exec(r)) !== null; ) {
@@ -223,7 +226,7 @@ function U(r) {
223
226
  `, "");
224
227
  e[t] = i;
225
228
  }
226
- e["sans-serif-font"] || (e["sans-serif-font"] = B), e["monospace-font"] || (e["monospace-font"] = L);
229
+ e["sans-serif-font"] || (e["sans-serif-font"] = J), e["monospace-font"] || (e["monospace-font"] = L);
227
230
  function o(t, i, c = /* @__PURE__ */ new Set()) {
228
231
  if (c.has(t)) return t;
229
232
  c.add(t);
@@ -248,7 +251,7 @@ function U(r) {
248
251
  }
249
252
  return l.replace(/:root\s*\{[^}]*\}/g, "");
250
253
  }
251
- function W(r, n) {
254
+ function Y(r, n) {
252
255
  const a = f.parse(r, {
253
256
  context: "stylesheet",
254
257
  positions: !1,
@@ -281,7 +284,7 @@ function W(r, n) {
281
284
  }
282
285
  }), f.generate(a);
283
286
  }
284
- function M(r, n) {
287
+ function A(r, n) {
285
288
  f.walk(r.block, {
286
289
  visit: "Declaration",
287
290
  enter(a) {
@@ -311,7 +314,7 @@ function k(r, n) {
311
314
  const s = Array.from(r.entries()).map(([o, l]) => `${o}: ${l}`).join("; ");
312
315
  return a.style.cssText = s, a;
313
316
  }
314
- function Y(r, n) {
317
+ function Z(r, n) {
315
318
  let a = [], e = 0;
316
319
  if (n.querySelectorAll("a[href]").forEach((o) => {
317
320
  const l = o.textContent || o.innerText, t = o.getAttribute("href");
@@ -328,17 +331,17 @@ function Y(r, n) {
328
331
  }
329
332
  }
330
333
  export {
331
- Y as addFootnotes,
334
+ Z as addFootnotes,
332
335
  k as buildPseudoSpan,
333
- le as configureMarked,
334
- M as extractDeclarations,
335
- fe as getContentForGzhBuiltinTheme,
336
- O as getContentForGzhCustomCss,
337
- ce as handleFrontMatter,
338
- W as modifyCss,
336
+ ce as configureMarked,
337
+ A as extractDeclarations,
338
+ ue as getContentForGzhBuiltinTheme,
339
+ U as getContentForGzhCustomCss,
340
+ pe as handleFrontMatter,
341
+ Y as modifyCss,
339
342
  L as monospace,
340
- pe as renderMarkdown,
341
- U as replaceCSSVariables,
342
- B as sansSerif,
343
- ie as serif
343
+ fe as renderMarkdown,
344
+ W as replaceCSSVariables,
345
+ J as sansSerif,
346
+ le as serif
344
347
  };
@@ -3,19 +3,19 @@ const n = `/*
3
3
  * https://github.com/sumruler/typora-theme-phycat
4
4
  */
5
5
 
6
- :root {
6
+ :root {
7
7
  /* 标题后小图标,借鉴自思源笔记主题——Savor */
8
8
  --h1-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h1_icon.svg")
9
9
  no-repeat center;
10
10
  --h2-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h2_icon.svg")
11
11
  no-repeat center;
12
- --h3-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h3_icon.svg")
12
+ --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>")
13
13
  no-repeat center;
14
- --h4-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h4_icon.svg")
14
+ --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>")
15
15
  no-repeat center;
16
- --h5-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h5_icon.svg")
16
+ --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>")
17
17
  no-repeat center;
18
- --h6-r-graphic: url("https://cdn.phycat.cn/img/mdicon/green/h6_icon.svg")
18
+ --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>")
19
19
  no-repeat center;
20
20
 
21
21
  /* 是否开启网格背景?1 是;0 否 */
@@ -47,7 +47,7 @@ const n = `/*
47
47
  }
48
48
  #wenyan {
49
49
  font-size: 14px;
50
- font-family:var(--sans-serif-font);
50
+ font-family: var(--sans-serif-font);
51
51
  margin: 0 auto;
52
52
  padding: 15px;
53
53
  line-height: 1.75;
@@ -56,17 +56,21 @@ const n = `/*
56
56
  word-break: break-word;
57
57
  word-wrap: break-word;
58
58
  text-align: left;
59
- background-image: linear-gradient(90deg,
60
- rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
61
- rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))),
62
- linear-gradient(360deg,
63
- rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
64
- rgba(0, 0, 0, 0) calc(3% * var(--bg-grid)));
65
- background-size: 20px 20px;
66
- background-position: center center;
59
+ background-image: linear-gradient(
60
+ 90deg,
61
+ rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
62
+ rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
63
+ ),
64
+ linear-gradient(
65
+ 360deg,
66
+ rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
67
+ rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
68
+ );
69
+ background-size: 20px 20px;
70
+ background-position: center center;
67
71
  }
68
72
  #wenyan p {
69
- text-align:justify;
73
+ text-align: justify;
70
74
  color: #333;
71
75
  margin: 10px 10px;
72
76
  word-spacing: 2px;
@@ -75,7 +79,7 @@ const n = `/*
75
79
  #wenyan h4::after,
76
80
  #wenyan h5::after,
77
81
  #wenyan h6::after {
78
- content: '';
82
+ content: "";
79
83
  margin-left: 0.2em;
80
84
  height: 2em;
81
85
  width: 1.2em;
@@ -113,9 +117,12 @@ const n = `/*
113
117
  background: var(--head-title-h2-background);
114
118
  background-size: 200% 100%;
115
119
  background-position: 0% 0%;
116
- transition: all ease-in-out 0.1s;
120
+ display: inline-block;
117
121
  }
118
- #wenyan h3,h4,h5,h6{
122
+ #wenyan h3,
123
+ h4,
124
+ h5,
125
+ h6 {
119
126
  font-weight: bold;
120
127
  display: flex;
121
128
  align-items: top;
@@ -135,7 +142,7 @@ const n = `/*
135
142
  font-size: 1.15em;
136
143
  }
137
144
  #wenyan h4::before {
138
- content: '';
145
+ content: "";
139
146
  margin-right: 7px;
140
147
  margin-top: 8px;
141
148
  background-color: var(--head-title-color);
@@ -149,7 +156,7 @@ const n = `/*
149
156
  font-size: 1.1em;
150
157
  }
151
158
  #wenyan h5::before {
152
- content: '';
159
+ content: "";
153
160
  margin-right: 7px;
154
161
  margin-top: 8px;
155
162
  display: inline-block;
@@ -164,60 +171,60 @@ const n = `/*
164
171
  font-size: 1.1em;
165
172
  }
166
173
  #wenyan h6::before {
167
- content: '';
174
+ content: "";
168
175
  color: var(--head-title-color);
169
176
  margin-right: 7px;
170
177
  }
171
178
 
172
179
  #wenyan ol {
173
- margin-left: 2px;
174
- padding-left: 12px;
175
- margin-bottom: 0px;
176
- margin-top: 0px;
180
+ margin-left: 2px;
181
+ padding-left: 12px;
182
+ margin-bottom: 0px;
183
+ margin-top: 0px;
177
184
  }
178
185
 
179
186
  #wenyan ul {
180
- list-style-type: disc;
181
- margin-bottom: 0px;
182
- margin-top: 0px;
187
+ list-style-type: disc;
188
+ margin-bottom: 0px;
189
+ margin-top: 0px;
183
190
  }
184
191
 
185
192
  #wenyan ul ul {
186
- list-style-type: circle;
193
+ list-style-type: circle;
187
194
  }
188
195
 
189
196
  #wenyan ul ul ul {
190
- list-style-type: square;
197
+ list-style-type: square;
191
198
  }
192
199
 
193
200
  #wenyan ol {
194
- padding-left: 27px;
195
- list-style-type: decimal;
201
+ padding-left: 27px;
202
+ list-style-type: decimal;
196
203
  }
197
204
  #wenyan ol ol {
198
- list-style-type: lower-alpha;
205
+ list-style-type: lower-alpha;
199
206
  }
200
207
  #wenyan ol ol ol {
201
- list-style-type: lower-roman;
208
+ list-style-type: lower-roman;
202
209
  }
203
210
 
204
211
  #wenyan li {
205
- color: #333;
206
- margin: 0px 6px;
207
- word-spacing: 2px;
208
- line-height: 2.5;
212
+ color: #333;
213
+ margin: 0px 6px;
214
+ word-spacing: 2px;
215
+ line-height: 2.5;
209
216
  }
210
217
 
211
218
  #wenyan li {
212
- position: relative;
219
+ position: relative;
213
220
  }
214
- #wenyan li > p{
215
- margin:0;
221
+ #wenyan li > p {
222
+ margin: 0;
216
223
  }
217
224
  #wenyan blockquote {
218
- font-size:12px;
225
+ font-size: 12px;
219
226
  margin-left: 12px;
220
- text-align:justify;
227
+ text-align: justify;
221
228
  padding: 12px;
222
229
  background: var(--element-color-soo-shallow);
223
230
  border: 0px solid var(--element-color);
@@ -255,7 +262,7 @@ const n = `/*
255
262
  }
256
263
  #wenyan img {
257
264
  max-width: 90%;
258
- display:block;
265
+ display: block;
259
266
  border-radius: 6px;
260
267
  margin: 10px auto;
261
268
  object-fit: contain;
@@ -275,14 +282,14 @@ const n = `/*
275
282
  border-radius: 5px;
276
283
  line-height: 2;
277
284
  margin: 1em 0.5em;
278
- padding: .5em;
285
+ padding: 0.5em;
279
286
  box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
280
287
  }
281
288
  #wenyan pre code {
282
289
  font-family: var(--monospace-font);
283
290
  display: block;
284
291
  overflow-x: auto;
285
- margin: .5em;
292
+ margin: 0.5em;
286
293
  padding: 0;
287
294
  }
288
295
  #wenyan table {