@wenyan-md/core 1.0.17 → 2.0.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/README.md +19 -169
- package/dist/core.js +1060 -416
- package/dist/publish.js +64 -66
- package/dist/types/core/hlThemeRegistry.d.ts +8 -0
- package/dist/types/core/index.d.ts +29 -0
- package/dist/types/core/parser/cssParser.d.ts +11 -0
- package/dist/types/core/parser/frontMatterParser.d.ts +7 -0
- package/dist/types/core/parser/markedParser.d.ts +6 -0
- package/dist/types/core/parser/mathjaxParser.d.ts +8 -0
- package/dist/types/core/renderer/footnotesRender.d.ts +1 -0
- package/dist/types/core/renderer/highlightApplyRender.d.ts +1 -0
- package/dist/types/core/renderer/macStyleRender.d.ts +3 -0
- package/dist/types/core/renderer/pseudoApplyRender.d.ts +1 -0
- package/dist/types/core/renderer/themeApplyRender.d.ts +1 -0
- package/dist/types/core/renderer/wechatPostRender.d.ts +1 -0
- package/dist/types/core/themeRegistry.d.ts +16 -0
- package/dist/types/core/types.d.ts +10 -0
- package/dist/types/core/utils.d.ts +6 -0
- package/dist/types/node/wrapper.d.ts +9 -0
- package/dist/types/wechat/adapters/browser.d.ts +2 -0
- package/dist/types/wechat/adapters/node.d.ts +2 -0
- package/dist/types/wechat/core.d.ts +6 -0
- package/dist/types/wechat/http.d.ts +12 -0
- package/dist/wrapper.js +17 -8
- package/package.json +30 -23
- package/dist/browser/wenyan-core.js +0 -94
- package/dist/hltheme.js +0 -70
- package/dist/math/wenyan-math.js +0 -19
- package/dist/styles/wenyan-styles.js +0 -2232
- package/dist/theme.js +0 -461
- package/dist/types/core.d.ts +0 -17
- package/dist/types/hltheme.d.ts +0 -6
- package/dist/types/theme.d.ts +0 -11
- package/dist/types/utils.d.ts +0 -1
- package/dist/types/wechatApi.d.ts +0 -8
- package/dist/types/wrapper.d.ts +0 -7
- package/dist/utils-YieK94fG.js +0 -9
- /package/dist/types/{runtimeEnv.d.ts → node/runtimeEnv.d.ts} +0 -0
- /package/dist/types/{publish.d.ts → wechat/publish.d.ts} +0 -0
package/dist/theme.js
DELETED
|
@@ -1,461 +0,0 @@
|
|
|
1
|
-
import { n as normalizeCssLoader } from "./utils-YieK94fG.js";
|
|
2
|
-
const __vite_glob_0_0 = "/**\n * 欢迎使用自定义主题功能,使用教程:\n * https://babyno.top/posts/2024/11/wenyan-supports-customized-themes/\n */\n/* 全局属性 */\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n/* 全局子元素属性 */\n/* 支持分组 */\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6,\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n/* 段落 */\n#wenyan p {\n}\n/* 加粗 */\n#wenyan p strong {\n}\n/* 斜体 */\n#wenyan p em {\n}\n/* 一级标题 */\n#wenyan h1 {\n text-align: center;\n text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n font-size: 1.5em;\n}\n/* 标题文字 */\n#wenyan h1 span {\n}\n/* 标题前缀,h1-h6都支持前缀 */\n#wenyan h1::before {\n}\n/* 标题后缀,h1-h6都支持后缀 */\n#wenyan h1::after {\n}\n/* 二级标题 */\n#wenyan h2 {\n text-align: center;\n font-size: 1.2em;\n border-bottom: 1px solid #f7f7f7;\n font-weight: bold;\n}\n/* 三-六级标题 */\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n font-size: 1em;\n font-weight: bold;\n}\n/* 列表 */\n#wenyan ul,\n#wenyan ol {\n padding-left: 1.2em;\n}\n/* 列表元素 */\n#wenyan li {\n margin-left: 1.2em;\n}\n/* 图片 */\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n/* 表格 */\n#wenyan table {\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n/* 表格单元格 */\n#wenyan table td,\n#wenyan table th {\n font-size: 0.75em;\n padding: 9px 12px;\n line-height: 22px;\n color: #222;\n border: 1px solid #d8d8d8;\n vertical-align: top;\n}\n/* 表格表头 */\n#wenyan table th {\n font-weight: bold;\n background-color: #f0f0f0;\n}\n/* 表格斑马条纹效果 */\n#wenyan table tr:nth-child(2n) {\n background-color: #f8f8f8;\n}\n/* 引用块 */\n#wenyan blockquote {\n background: #afb8c133;\n border-left: 0.5em solid #ccc;\n margin: 1.5em 0;\n padding: 0.5em 10px;\n font-style: italic;\n font-size: 0.9em;\n}\n/* 引用块前缀 */\n#wenyan blockquote::before {\n}\n/* 引用块后缀 */\n#wenyan blockquote::after {\n}\n/* 行内代码 */\n#wenyan p code {\n font-family: var(--monospace-font);\n color: #ff502c;\n padding: 4px 6px;\n font-size: 0.78em;\n}\n/* 代码块外围 */\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n/* 代码块 */\n#wenyan pre code {\n font-family: var(--monospace-font);\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n}\n/* 分割线 */\n#wenyan hr {\n border: none;\n border-top: 1px solid #ddd;\n margin-top: 2em;\n margin-bottom: 2em;\n}\n/* 链接 */\n#wenyan a {\n word-wrap: break-word;\n color: #0069c2;\n}\n/* 原始链接旁脚注上标 */\n#wenyan .footnote {\n color: #0069c2;\n}\n/* 脚注行 */\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n/* 脚注行内编号 */\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n/* 脚注行内文字 */\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n";
|
|
3
|
-
const __vite_glob_0_1 = "#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n}\n#wenyan * {\n box-sizing: border-box;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6,\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n line-height: 1.5;\n margin-top: 35px;\n margin-bottom: 10px;\n padding-bottom: 5px;\n}\n#wenyan h1 {\n font-size: 24px;\n line-height: 38px;\n margin-bottom: 5px;\n}\n#wenyan h2 {\n font-size: 22px;\n line-height: 34px;\n padding-bottom: 12px;\n border-bottom: 1px solid #ececec;\n}\n#wenyan h3 {\n font-size: 20px;\n line-height: 28px;\n}\n#wenyan ul,\n#wenyan ol {\n padding-left: 1.2em;\n}\n#wenyan li {\n margin-left: 1.2em;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan table {\n display: inline-block !important;\n font-size: 12px;\n width: auto;\n max-width: 100%;\n overflow: auto;\n border: 1px solid #f6f6f6;\n}\n#wenyan thead {\n background: #f6f6f6;\n color: #000;\n text-align: left;\n}\n#wenyan table td,\n#wenyan table th {\n padding: 12px 7px;\n line-height: 24px;\n}\n#wenyan blockquote {\n color: #666;\n padding: 1px 23px;\n margin: 22px 0;\n border-left: 4px solid #cbcbcb;\n background-color: #f8f8f8;\n font-size: 0.95em;\n}\n#wenyan p code {\n font-family: var(--monospace-font);\n background: #fff5f5;\n color: #ff502c;\n padding: 4px 6px;\n font-size: 0.78em;\n}\n#wenyan pre {\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n color: #333;\n background: #f8f8f8;\n}\n#wenyan pre code {\n font-family: var(--monospace-font);\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n background: #f8f8f8;\n}\n#wenyan hr {\n border: none;\n border-top: 1px solid #ddd;\n margin-top: 32px;\n margin-bottom: 32px;\n}\n/* 链接 */\n#wenyan a {\n word-wrap: break-word;\n color: #0069c2;\n}\n/* 脚注 */\n#wenyan #footnotes ul {\n font-size: 0.9em;\n margin: 0;\n padding-left: 1.2em;\n}\n#wenyan #footnotes li {\n margin: 0 0 0 1.2em;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan .footnote {\n color: #0069c2;\n}\n";
|
|
4
|
-
const __vite_glob_0_2 = "/*\n * Typora Theme - Lapis / Author - YiNN\n * https://github.com/YiNNx/typora-theme-lapis\n */\n\n:root {\n --text-color: #40464f;\n --primary-color: #4870ac;\n --bg-color: #ffffff;\n --marker-color: #a2b6d4;\n --source-color: #a8a8a9;\n --header-span-color: var(--primary-color);\n --block-bg-color: #f6f8fa;\n}\n#wenyan {\n color: var(--text-color);\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan strong {\n color: var(--primary-color);\n}\n#wenyan a {\n word-wrap: break-word;\n color: var(--primary-color);\n}\n#wenyan p {\n color: var(--text-color);\n}\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n font-weight: normal;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n padding: 0px;\n color: var(--primary-color);\n margin: 1.2em 0 1em;\n}\n#wenyan h1 {\n text-align: center;\n}\n#wenyan h2 {\n padding: 1px 12.5px;\n border-radius: 4px;\n display: inline-block;\n}\n#wenyan h2,\n#wenyan h2 code {\n background-color: var(--header-span-color);\n}\n#wenyan h2,\n#wenyan h2 a,\n#wenyan h2 code,\n#wenyan h2 strong {\n color: var(--bg-color);\n}\n#wenyan h1 {\n font-size: 1.5em;\n}\n#wenyan h2 {\n font-size: 1.3em;\n}\n#wenyan h3 {\n font-size: 1.3em;\n}\n#wenyan h4 {\n font-size: 1.2em;\n}\n#wenyan h5 {\n font-size: 1.2em;\n}\n#wenyan h6 {\n font-size: 1.2em;\n}\n#wenyan ul {\n list-style-type: disc;\n}\n#wenyan em {\n padding: 0 3px 0 0;\n}\n#wenyan ul ul {\n list-style-type: square;\n}\n#wenyan ol {\n list-style-type: decimal;\n}\n#wenyan blockquote {\n display: block;\n font-size: 0.9em;\n border-left: 3px solid var(--primary-color);\n padding: 0.5em 1em;\n margin: 0;\n background: var(--block-bg-color);\n}\n#wenyan p code {\n color: var(--primary-color);\n font-size: 0.9em;\n font-weight: normal;\n word-wrap: break-word;\n padding: 2px 4px 2px;\n border-radius: 3px;\n margin: 2px;\n background-color: var(--block-bg-color);\n font-family: var(--monospace-font);\n word-break: break-all;\n}\n#wenyan img {\n max-width: 100%;\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan table {\n display: table;\n text-align: justify;\n overflow-x: auto;\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table th,\n#wenyan table td {\n border: 1px solid #d9dfe4;\n padding: 9px 12px;\n font-size: 0.75em;\n line-height: 22px;\n vertical-align: top;\n}\n#wenyan table th {\n text-align: center;\n font-weight: bold;\n color: var(--primary-color);\n background: #f7f7f7;\n}\n#wenyan hr {\n margin-top: 20px;\n margin-bottom: 20px;\n border: 0;\n border-top: 2px solid #eef2f5;\n border-radius: 2px;\n}\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan .footnote {\n color: var(--primary-color);\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n";
|
|
5
|
-
const __vite_glob_0_3 = '/*\n * Typora Theme - Maize / Author - BEATREE\n * https://github.com/BEATREE/typora-maize-theme\n */\n\n:root {\n --bg-color: #fafafa;\n --text-color: #333333;\n --primary-color: #428bca;\n}\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n margin: 1.2em 0 1em;\n padding: 0px;\n font-weight: bold;\n}\n#wenyan h1 {\n font-size: 1.5em;\n}\n#wenyan h2::before {\n content: "";\n width: 20px;\n height: 30px;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIj4KICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Im0zMy40NTIgNjIuMTQyUzY2LjA2MyAxNC45MzcgOTAuNDU2IDEwLjI4M2wxLjQyOSAxLjcxNFM3Mi41MzIgMjkuNTgyIDU4LjEzMyA0OC41ODNDNDMuMDg0IDY4LjQ0MiAzNi4wNTggODkuOTQ3IDMxLjg4IDg5LjcxNWMtNS42ODEtLjQxLTEyLjQyOS0zNy43MTYtMjMuMjg3LTMzLjI4Ny0yLjI4Ni0uNTcxIDMuOTEyLTkuNjE0IDEyLjU3Mi03LjU3MiA1LjQzIDEuMjgxIDEyLjI4NyAxMy4yODYgMTIuMjg3IDEzLjI4NnoiIGZpbGw9IiNmZmIxMWIiIC8+CiAgICA8L2c+Cjwvc3ZnPg==);\n background-repeat: no-repeat;\n background-size: 20px 20px;\n margin-right: 4px;\n background-position-y: 10px;\n}\n#wenyan h2 {\n font-size: 1.3em;\n display: flex;\n align-items: top;\n}\n#wenyan h2 span {\n font-weight: bold;\n color: #333;\n padding: 3px 10px 1px;\n}\n#wenyan h3 {\n font-size: 1.3em;\n}\n#wenyan h4 {\n font-size: 1.2em;\n}\n#wenyan h5 {\n font-size: 1.2em;\n}\n#wenyan h6 {\n font-size: 1.2em;\n}\n#wenyan ul,\n#wenyan ol {\n margin-top: 8px;\n margin-bottom: 8px;\n padding-left: 40px;\n color: black;\n}\n#wenyan ul {\n list-style-type: disc;\n}\n#wenyan ul ul {\n list-style-type: square;\n}\n#wenyan ol {\n list-style-type: decimal;\n}\n#wenyan strong {\n color: #e49123;\n font-weight: bold;\n}\n#wenyan blockquote {\n margin: 0;\n padding: 10px 10px 10px 20px;\n font-size: 0.9em;\n background: #fff9f9;\n border-left: 3px solid #ffb11b;\n color: #6a737d;\n overflow: auto;\n}\n#wenyan a {\n word-wrap: break-word;\n text-decoration: none;\n font-weight: bold;\n color: #e49123;\n border-bottom: 1px solid #e49123;\n}\n#wenyan hr {\n height: 1px;\n padding: 0;\n border: none;\n text-align: center;\n background-image: linear-gradient(to right, rgba(231, 93, 109, 0.3), rgba(255, 159, 150, 0.75), rgba(255, 216, 181, 0.3));\n}\n#wenyan p code,\n#wenyan span code,\n#wenyan li code {\n font-family: var(--monospace-font);\n word-wrap: break-word;\n padding: 2px 4px;\n border-radius: 4px;\n margin: 0 2px;\n word-break: break-all;\n color: rgb(235, 76, 55);\n background-color: #f0f0f0;\n font-size: .8em;\n}\n#wenyan img {\n max-width: 100%;\n display: block;\n margin: 0 auto;\n width: 85%;\n border-radius: 5px;\n box-shadow: 0px 4px 12px #84a1a8;\n border: 0px;\n}\n#wenyan table {\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table td,\n#wenyan table th {\n font-size: 0.75em;\n padding: 9px 12px;\n line-height: 22px;\n color: #222;\n border: 1px solid rgb(255, 216, 181);\n vertical-align: top;\n}\n#wenyan table th {\n font-weight: bold;\n color: #ffb11b;\n background: #fff9f9;\n}\n#wenyan table tr:nth-child(2n) {\n background: #fff9f9;\n}\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan .footnote {\n font-weight: bold;\n color: #e49123;\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n';
|
|
6
|
-
const __vite_glob_0_4 = ':root {\n --sans-serif-font: source-serif-pro, Georgia, Cambria, "Times New Roman", Times, serif;\n --monospace-font: Menlo, Monaco, Consolas, "liberation mono", "courier new", monospace;\n}\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan * {\n box-sizing: border-box;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;\n margin: 1em 0;\n}\n#wenyan h1 {\n font-size: 2em;\n font-weight: 700;\n}\n#wenyan h2,\n#wenyan h3 {\n font-size: 1.3em;\n font-weight: 700;\n}\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n font-size: 1.2em;\n font-weight: 700;\n}\n#wenyan p {\n letter-spacing: -0.003em;\n margin: 1em 0;\n}\n#wenyan ul,\n#wenyan ol {\n padding-left: 1.2em;\n}\n#wenyan li {\n margin-left: 1.2em;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan table {\n border-collapse: collapse;\n font-size: 15px;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n width: 100%;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table th {\n background: #ebeced;\n color: #191b1f;\n font-weight: 500;\n}\n#wenyan table td,\n#wenyan table th {\n border: 1px solid #c4c7ce;\n height: 24px;\n line-height: 24px;\n padding: 3px 12px;\n}\n#wenyan blockquote {\n letter-spacing: -0.003em;\n border-left: 3px solid rgba(0, 0, 0, 0.84);\n padding-left: 20px;\n margin: 0 0 20px 0;\n}\n#wenyan p code {\n padding: 4px 6px;\n font-size: 0.78em;\n border-radius: 3px;\n font-family: var(--monospace-font);\n background-color: #f2f2f2;\n}\n#wenyan pre {\n line-height: 2;\n margin: 1em 0.5em;\n padding: 1em;\n background: #f9f9f9;\n border-radius: 4px;\n border: 1px solid #e5e5e5;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n background: #f9f9f9;\n}\n#wenyan hr {\n border: none;\n border-top: 1px solid #c4c7ce;\n margin: 2em auto;\n max-width: 100%;\n width: 240px;\n}\n/* 链接 */\n#wenyan a {\n word-wrap: break-word;\n color: #000000;\n}\n/* 脚注 */\n#wenyan #footnotes ul {\n font-size: 0.9em;\n margin: 0;\n padding-left: 1.2em;\n}\n#wenyan #footnotes li {\n margin: 0 0 0 1.2em;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan .footnote {\n color: #000000;\n}\n';
|
|
7
|
-
const __vite_glob_0_5 = '/*\n * Typora Theme - Orange Heart / Author - evgo2017\n * https://github.com/evgo2017/typora-theme-orange-heart\n */\n\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n margin: 1.2em 0 1em;\n padding: 0px;\n font-weight: bold;\n}\n#wenyan h1 {\n font-size: 1.5em;\n}\n#wenyan h2 {\n font-size: 1.3em;\n border-bottom: 2px solid rgb(239, 112, 96);\n display: flex;\n}\n#wenyan h2 span {\n display: inline-block;\n font-weight: bold;\n background: rgb(239, 112, 96);\n color: #ffffff;\n padding: 3px 10px 1px;\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n margin-right: 3px;\n}\n#wenyan h2::after {\n content: "";\n border-bottom: 36px solid #efebe9;\n border-right: 20px solid transparent;\n align-self: flex-end;\n height: 0;\n}\n#wenyan h3 {\n font-size: 1.3em;\n}\n#wenyan h4 {\n font-size: 1.2em;\n}\n#wenyan h5 {\n font-size: 1.1em;\n}\n#wenyan h6 {\n font-size: 1em;\n}\n#wenyan ul,\n#wenyan ol {\n margin-top: 8px;\n margin-bottom: 8px;\n padding-left: 25px;\n color: black;\n}\n#wenyan ul {\n list-style-type: disc;\n}\n#wenyan ul ul {\n list-style-type: square;\n}\n#wenyan ol {\n list-style-type: decimal;\n}\n#wenyan blockquote {\n margin: 0;\n display: block;\n font-size: 0.9em;\n overflow: auto;\n border-left: 3px solid rgb(239, 112, 96);\n color: #6a737d;\n padding: 10px 10px 10px 20px;\n margin-bottom: 20px;\n margin-top: 20px;\n background: #fff9f9;\n}\n#wenyan a {\n text-decoration: none;\n word-wrap: break-word;\n font-weight: bold;\n color: rgb(239, 112, 96);\n border-bottom: 1px solid rgb(239, 112, 96);\n}\n#wenyan p code,\n#wenyan li code {\n font-size: 0.9em;\n word-wrap: break-word;\n padding: 2px 4px;\n border-radius: 4px;\n margin: 0 2px;\n color: rgb(239, 112, 96);\n background-color: rgba(27, 31, 35, 0.05);\n font-family: var(--monospace-font);\n word-break: break-all;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan span img {\n max-width: 100%;\n display: inline-block;\n border-right: 0px;\n border-left: 0px;\n}\n#wenyan table {\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table td,\n#wenyan table th {\n font-size: 0.75em;\n padding: 9px 12px;\n line-height: 22px;\n color: #222;\n border: 1px solid rgb(239, 112, 96);\n vertical-align: top;\n}\n#wenyan table th {\n font-weight: bold;\n background-color: #fff9f9;\n color: rgb(239, 112, 96);\n}\n#wenyan span code,\n#wenyan li code {\n color: rgb(239, 112, 96);\n}\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n#wenyan pre code {\n display: block;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan .footnote {\n color: rgb(239, 112, 96);\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n';
|
|
8
|
-
const __vite_glob_0_6 = `/*
|
|
9
|
-
* Typora Theme - Phycat / Author - sumruler
|
|
10
|
-
* https://github.com/sumruler/typora-theme-phycat
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
:root {
|
|
14
|
-
/* 标题后小图标,借鉴自思源笔记主题——Savor */
|
|
15
|
-
--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>")
|
|
16
|
-
no-repeat center;
|
|
17
|
-
--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>")
|
|
18
|
-
no-repeat center;
|
|
19
|
-
--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>")
|
|
20
|
-
no-repeat center;
|
|
21
|
-
--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>")
|
|
22
|
-
no-repeat center;
|
|
23
|
-
|
|
24
|
-
/* 是否开启网格背景?1 是;0 否 */
|
|
25
|
-
--bg-grid: 0;
|
|
26
|
-
|
|
27
|
-
/* 主题颜色 */
|
|
28
|
-
|
|
29
|
-
--head-title-color: #3db8bf;
|
|
30
|
-
/* 标题主色 */
|
|
31
|
-
--head-title-h2-color: #fff;
|
|
32
|
-
--head-title-h2-background: linear-gradient(to right, #3db8d3, #80f7c4);
|
|
33
|
-
/* 二级标题主色,因为二级标题是背景色的,所以单独设置 */
|
|
34
|
-
|
|
35
|
-
--element-color: #3db8bf;
|
|
36
|
-
/* 元素主色 */
|
|
37
|
-
--element-color-deep: #089ba3;
|
|
38
|
-
/* 元素深色 */
|
|
39
|
-
--element-color-shallow: #7aeaf0;
|
|
40
|
-
/* 元素浅色 */
|
|
41
|
-
--element-color-so-shallow: #7aeaf077;
|
|
42
|
-
/* 元素很浅色 */
|
|
43
|
-
--element-color-soo-shallow: #7aeaf018;
|
|
44
|
-
/* 元素非常浅色 */
|
|
45
|
-
|
|
46
|
-
--element-color-linecode: #089ba3;
|
|
47
|
-
/* 行内代码文字色 */
|
|
48
|
-
--element-color-linecode-background: #7aeaf018;
|
|
49
|
-
/* 行内代码背景色 */
|
|
50
|
-
}
|
|
51
|
-
#wenyan {
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
font-family: var(--sans-serif-font);
|
|
54
|
-
margin: 0 auto;
|
|
55
|
-
padding: 15px;
|
|
56
|
-
line-height: 1.75;
|
|
57
|
-
color: #000;
|
|
58
|
-
letter-spacing: 1.1px;
|
|
59
|
-
word-break: break-word;
|
|
60
|
-
word-wrap: break-word;
|
|
61
|
-
text-align: left;
|
|
62
|
-
background-image: linear-gradient(
|
|
63
|
-
90deg,
|
|
64
|
-
rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
|
|
65
|
-
rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
|
|
66
|
-
),
|
|
67
|
-
linear-gradient(
|
|
68
|
-
360deg,
|
|
69
|
-
rgba(50, 0, 0, 0.05) calc(3% * var(--bg-grid)),
|
|
70
|
-
rgba(0, 0, 0, 0) calc(3% * var(--bg-grid))
|
|
71
|
-
);
|
|
72
|
-
background-size: 20px 20px;
|
|
73
|
-
background-position: center center;
|
|
74
|
-
}
|
|
75
|
-
#wenyan p {
|
|
76
|
-
text-align: justify;
|
|
77
|
-
color: #333;
|
|
78
|
-
margin: 10px 10px;
|
|
79
|
-
word-spacing: 2px;
|
|
80
|
-
}
|
|
81
|
-
#wenyan h3::after,
|
|
82
|
-
#wenyan h4::after,
|
|
83
|
-
#wenyan h5::after,
|
|
84
|
-
#wenyan h6::after {
|
|
85
|
-
content: "";
|
|
86
|
-
margin-left: 0.2em;
|
|
87
|
-
height: 2em;
|
|
88
|
-
width: 1.2em;
|
|
89
|
-
}
|
|
90
|
-
#wenyan h3::after {
|
|
91
|
-
background: var(--h3-r-graphic);
|
|
92
|
-
background-position-y: -2px;
|
|
93
|
-
}
|
|
94
|
-
#wenyan h4::after {
|
|
95
|
-
background: var(--h4-r-graphic);
|
|
96
|
-
background-position-y: -2px;
|
|
97
|
-
}
|
|
98
|
-
#wenyan h5::after {
|
|
99
|
-
background: var(--h5-r-graphic);
|
|
100
|
-
background-position-y: -1px;
|
|
101
|
-
}
|
|
102
|
-
#wenyan h6::after {
|
|
103
|
-
background: var(--h6-r-graphic);
|
|
104
|
-
background-position-y: -1px;
|
|
105
|
-
}
|
|
106
|
-
#wenyan h1 {
|
|
107
|
-
text-align: center;
|
|
108
|
-
font-weight: bold;
|
|
109
|
-
font-size: 1.4em;
|
|
110
|
-
}
|
|
111
|
-
#wenyan h2 {
|
|
112
|
-
color: var(--head-title-h2-color);
|
|
113
|
-
font-size: 1.4em;
|
|
114
|
-
line-height: 1.6;
|
|
115
|
-
width: fit-content;
|
|
116
|
-
font-weight: bold;
|
|
117
|
-
margin: 20px 0 5px;
|
|
118
|
-
padding: 1px 12.5px;
|
|
119
|
-
border-radius: 4px;
|
|
120
|
-
background: var(--head-title-h2-background);
|
|
121
|
-
background-size: 200% 100%;
|
|
122
|
-
background-position: 0% 0%;
|
|
123
|
-
display: inline-block;
|
|
124
|
-
}
|
|
125
|
-
#wenyan h3,
|
|
126
|
-
h4,
|
|
127
|
-
h5,
|
|
128
|
-
h6 {
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: top;
|
|
132
|
-
}
|
|
133
|
-
#wenyan h3 {
|
|
134
|
-
width: fit-content;
|
|
135
|
-
margin: 20px 0 5px;
|
|
136
|
-
font-size: 1.3em;
|
|
137
|
-
padding-left: 10px;
|
|
138
|
-
border-left: 5px solid var(--head-title-color);
|
|
139
|
-
}
|
|
140
|
-
#wenyan h3 span {
|
|
141
|
-
border-bottom: 2px hidden var(--head-title-color);
|
|
142
|
-
}
|
|
143
|
-
#wenyan h4 {
|
|
144
|
-
margin: 20px 0 5px;
|
|
145
|
-
font-size: 1.15em;
|
|
146
|
-
}
|
|
147
|
-
#wenyan h4::before {
|
|
148
|
-
content: "";
|
|
149
|
-
margin-right: 7px;
|
|
150
|
-
margin-top: 8px;
|
|
151
|
-
background-color: var(--head-title-color);
|
|
152
|
-
width: 10px;
|
|
153
|
-
height: 10px;
|
|
154
|
-
border-radius: 100%;
|
|
155
|
-
border: var(--head-title-color) 1px solid;
|
|
156
|
-
}
|
|
157
|
-
#wenyan h5 {
|
|
158
|
-
margin: 20px 0 5px;
|
|
159
|
-
font-size: 1.1em;
|
|
160
|
-
}
|
|
161
|
-
#wenyan h5::before {
|
|
162
|
-
content: "";
|
|
163
|
-
margin-right: 7px;
|
|
164
|
-
margin-top: 8px;
|
|
165
|
-
display: inline-block;
|
|
166
|
-
background-color: #ffffff;
|
|
167
|
-
width: 10px;
|
|
168
|
-
height: 10px;
|
|
169
|
-
border-radius: 100%;
|
|
170
|
-
border: var(--head-title-color) 2px solid;
|
|
171
|
-
}
|
|
172
|
-
#wenyan h6 {
|
|
173
|
-
margin: 20px 0 5px;
|
|
174
|
-
font-size: 1.1em;
|
|
175
|
-
}
|
|
176
|
-
#wenyan h6::before {
|
|
177
|
-
content: "⁘";
|
|
178
|
-
color: var(--head-title-color);
|
|
179
|
-
margin-right: 7px;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
#wenyan ol {
|
|
183
|
-
margin-left: 2px;
|
|
184
|
-
padding-left: 12px;
|
|
185
|
-
margin-bottom: 0px;
|
|
186
|
-
margin-top: 0px;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
#wenyan ul {
|
|
190
|
-
list-style-type: disc;
|
|
191
|
-
margin-bottom: 0px;
|
|
192
|
-
margin-top: 0px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
#wenyan ul ul {
|
|
196
|
-
list-style-type: circle;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
#wenyan ul ul ul {
|
|
200
|
-
list-style-type: square;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
#wenyan ol {
|
|
204
|
-
padding-left: 27px;
|
|
205
|
-
list-style-type: decimal;
|
|
206
|
-
}
|
|
207
|
-
#wenyan ol ol {
|
|
208
|
-
list-style-type: lower-alpha;
|
|
209
|
-
}
|
|
210
|
-
#wenyan ol ol ol {
|
|
211
|
-
list-style-type: lower-roman;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
#wenyan li {
|
|
215
|
-
color: #333;
|
|
216
|
-
margin: 0px 6px;
|
|
217
|
-
word-spacing: 2px;
|
|
218
|
-
line-height: 2.5;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
#wenyan li {
|
|
222
|
-
position: relative;
|
|
223
|
-
}
|
|
224
|
-
#wenyan li > p {
|
|
225
|
-
margin: 0;
|
|
226
|
-
}
|
|
227
|
-
#wenyan blockquote {
|
|
228
|
-
font-size: 12px;
|
|
229
|
-
margin-left: 12px;
|
|
230
|
-
text-align: justify;
|
|
231
|
-
padding: 12px;
|
|
232
|
-
background: var(--element-color-soo-shallow);
|
|
233
|
-
border: 0px solid var(--element-color);
|
|
234
|
-
border-left-color: var(--element-color);
|
|
235
|
-
border-left-width: 4px;
|
|
236
|
-
border-radius: 4px;
|
|
237
|
-
line-height: 26px;
|
|
238
|
-
}
|
|
239
|
-
#wenyan blockquote p {
|
|
240
|
-
color: #000;
|
|
241
|
-
}
|
|
242
|
-
#wenyan a {
|
|
243
|
-
color: #000;
|
|
244
|
-
font-weight: bolder;
|
|
245
|
-
text-decoration: none;
|
|
246
|
-
border-bottom: 1px solid #3db8bf;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
#wenyan strong {
|
|
250
|
-
color: #000;
|
|
251
|
-
font-weight: bold;
|
|
252
|
-
}
|
|
253
|
-
#wenyan em {
|
|
254
|
-
font-style: italic;
|
|
255
|
-
color: #000;
|
|
256
|
-
}
|
|
257
|
-
#wenyan del {
|
|
258
|
-
text-decoration-color: var(--element-color-deep);
|
|
259
|
-
}
|
|
260
|
-
#wenyan hr {
|
|
261
|
-
height: 1px;
|
|
262
|
-
padding: 0;
|
|
263
|
-
border: none;
|
|
264
|
-
border-top: 2px solid var(--head-title-color);
|
|
265
|
-
}
|
|
266
|
-
#wenyan img {
|
|
267
|
-
max-width: 90%;
|
|
268
|
-
display: block;
|
|
269
|
-
border-radius: 6px;
|
|
270
|
-
margin: 10px auto;
|
|
271
|
-
object-fit: contain;
|
|
272
|
-
}
|
|
273
|
-
#wenyan p code {
|
|
274
|
-
padding: 3px 3px 1px;
|
|
275
|
-
color: var(--element-color-linecode);
|
|
276
|
-
background: var(--element-color-linecode-background);
|
|
277
|
-
border-radius: 3px;
|
|
278
|
-
font-family: var(--monospace-font);
|
|
279
|
-
letter-spacing: 0.5px;
|
|
280
|
-
}
|
|
281
|
-
#wenyan li code {
|
|
282
|
-
color: var(--element-color-linecode);
|
|
283
|
-
}
|
|
284
|
-
#wenyan pre {
|
|
285
|
-
border-radius: 5px;
|
|
286
|
-
line-height: 2;
|
|
287
|
-
margin: 1em 0.5em;
|
|
288
|
-
padding: 0.5em;
|
|
289
|
-
box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;
|
|
290
|
-
}
|
|
291
|
-
#wenyan pre code {
|
|
292
|
-
font-family: var(--monospace-font);
|
|
293
|
-
display: block;
|
|
294
|
-
overflow-x: auto;
|
|
295
|
-
margin: 0.5em;
|
|
296
|
-
padding: 0;
|
|
297
|
-
}
|
|
298
|
-
#wenyan table {
|
|
299
|
-
border-collapse: collapse;
|
|
300
|
-
margin: 1.4em auto;
|
|
301
|
-
max-width: 100%;
|
|
302
|
-
table-layout: fixed;
|
|
303
|
-
text-align: left;
|
|
304
|
-
overflow: auto;
|
|
305
|
-
display: table;
|
|
306
|
-
word-wrap: break-word;
|
|
307
|
-
word-break: break-all;
|
|
308
|
-
}
|
|
309
|
-
#wenyan table td,
|
|
310
|
-
#wenyan table th {
|
|
311
|
-
font-size: 10px;
|
|
312
|
-
padding: 9px 12px;
|
|
313
|
-
line-height: 22px;
|
|
314
|
-
color: #222;
|
|
315
|
-
border: 1px solid var(--element-color-deep);
|
|
316
|
-
vertical-align: top;
|
|
317
|
-
}
|
|
318
|
-
#wenyan table th {
|
|
319
|
-
font-weight: bold;
|
|
320
|
-
background-color: var(--element-color-soo-shallow);
|
|
321
|
-
color: var(--element-color-deep);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
#wenyan .footnote {
|
|
325
|
-
color: var(--primary-color);
|
|
326
|
-
}
|
|
327
|
-
#wenyan #footnotes p {
|
|
328
|
-
display: flex;
|
|
329
|
-
margin: 0;
|
|
330
|
-
font-size: 0.9em;
|
|
331
|
-
}
|
|
332
|
-
#wenyan .footnote-num {
|
|
333
|
-
display: inline;
|
|
334
|
-
width: 10%;
|
|
335
|
-
}
|
|
336
|
-
#wenyan .footnote-txt {
|
|
337
|
-
display: inline;
|
|
338
|
-
width: 90%;
|
|
339
|
-
word-wrap: break-word;
|
|
340
|
-
word-break: break-all;
|
|
341
|
-
}
|
|
342
|
-
`;
|
|
343
|
-
const __vite_glob_0_7 = '/*\n * Typora Theme - Pie / Author - kevinzhao2233\n * https://github.com/kevinzhao2233/typora-theme-pie\n */\n\n:root {\n --mid-1: #ffffff;\n --mid-7: #8c8c8c;\n --mid-9: #434343;\n --mid-10: #262626;\n --main-1: #fff2f0;\n --main-4: #f27f79;\n --main-5: #e6514e;\n --main-6: #da282a;\n}\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n color: var(--mid-10);\n letter-spacing: 0;\n font-size: 16px;\n}\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan p {\n word-spacing: 0.05rem;\n text-align: justify;\n}\n#wenyan a {\n word-wrap: break-word;\n color: var(--main-6);\n text-decoration: none;\n border-bottom: 1px solid var(--main-6);\n transition: border-bottom 0.2s;\n padding: 0 2px;\n font-weight: 500;\n text-decoration: none;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n position: relative;\n margin: 1.2em 0 1em;\n padding: 0px;\n font-weight: bold;\n cursor: text;\n}\n#wenyan h2 a,\n#wenyan h3 a {\n color: var(--mid-9);\n}\n#wenyan h1 {\n font-size: 1.5em;\n text-align: center;\n}\n#wenyan h1::after {\n display: block;\n width: 100px;\n height: 2px;\n margin: 0.2em auto 0;\n content: "";\n border-bottom: 2px dashed var(--main-6);\n}\n#wenyan h2 {\n padding-left: 6px;\n margin: 2em auto 1.4em;\n font-size: 1.3em;\n border-left: 6px solid var(--main-6);\n}\n#wenyan h3 {\n font-size: 1.2em;\n}\n#wenyan h3::before {\n display: inline-block;\n width: 6px;\n height: 6px;\n margin-right: 6px;\n margin-bottom: 0.18em;\n line-height: 1.43;\n vertical-align: middle;\n content: "";\n background-color: var(--main-5);\n border-radius: 50%;\n}\n#wenyan h4 {\n font-size: 1.2em;\n}\n#wenyan h4::before {\n display: inline-block;\n width: 6px;\n height: 2px;\n margin-right: 8px;\n margin-bottom: 0.18em;\n vertical-align: middle;\n content: "";\n background-color: var(--main-4);\n}\n#wenyan h5 {\n font-size: 1.2em;\n}\n#wenyan h6 {\n font-size: 1.2em;\n color: var(--mid-7);\n}\n#wenyan li > ol,\n#wenyan li > ul {\n margin: 0;\n}\n#wenyan hr {\n box-sizing: content-box;\n width: 100%;\n height: 1px;\n padding: 0;\n margin: 46px auto 64px;\n overflow: hidden;\n background-color: var(--main-4);\n border: 0;\n}\n#wenyan blockquote {\n position: relative;\n padding: 24px 16px 12px;\n margin: 24px 0 36px;\n font-size: 1em;\n font-style: normal;\n line-height: 1.6;\n color: var(--mid-7);\n text-indent: 0;\n border: none;\n border-left: 2px solid var(--main-6);\n}\n#wenyan blockquote blockquote {\n padding-right: 0;\n}\n#wenyan blockquote a {\n color: var(--mid-7);\n}\n#wenyan blockquote::before {\n position: absolute;\n top: 0;\n left: 12px;\n font-family: Arial, serif;\n font-size: 2em;\n font-weight: 700;\n line-height: 1em;\n color: var(--main-6);\n content: "“";\n}\n#wenyan table {\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table td,\n#wenyan table th {\n font-size: 0.75em;\n padding: 9px 12px;\n line-height: 22px;\n vertical-align: top;\n border: 1px solid var(--main-4);\n}\n#wenyan table th {\n font-weight: bold;\n color: var(--main-6);\n background-color: var(--main-1);\n}\n#wenyan strong {\n padding: 0 1px;\n}\n#wenyan em {\n padding: 0 5px 0 2px;\n}\n#wenyan p code {\n padding: 2px 4px 1px;\n margin: 0 2px;\n font-family: var(--monospace-font);\n font-size: 0.92rem;\n color: var(--main-5);\n background-color: var(--main-1);\n border-radius: 3px;\n}\n#wenyan p code {\n vertical-align: 0.5px;\n}\n#wenyan .footnote {\n color: var(--main-5);\n background-color: var(--main-1);\n}\n#wenyan img {\n max-width: 100%;\n display: block;\n margin: 0 auto;\n border-radius: 4px;\n}\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan .footnote {\n color: rgb(239, 112, 96);\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n';
|
|
344
|
-
const __vite_glob_0_8 = '/*\n * Typora Theme - Purple / Author - hliu202\n * https://github.com/hliu202/typora-purple-theme\n */\n\n:root {\n --title-color: #8064a9;\n --text-color: #444444;\n --link-color: #2aa899;\n --code-color: #745fb5;\n --shadow-color: #eee;\n --border-quote: rgba(116, 95, 181, 0.2);\n --border: #e7e7e7;\n --link-bottom: #bbb;\n --shadow: 3px 3px 10px var(--shadow-color);\n --inline-code-bg: #f4f2f9;\n --header-weight: normal;\n}\n#wenyan {\n font-family: var(--sans-serif-font);\n color: var(--text-color);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan a {\n word-wrap: break-word;\n border-bottom: 1px solid var(--link-bottom);\n color: var(--link-color);\n text-decoration: none;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n margin: 1.2em 0 1em;\n padding: 0px;\n font-weight: var(--header-weight);\n color: var(--title-color);\n font-family: var(--sans-serif-font);\n}\n#wenyan h1 {\n text-align: center;\n}\n#wenyan h1::after {\n content: "";\n display: block;\n margin: 0.2em auto 0;\n width: 6em;\n height: 2px;\n border-bottom: 2px solid var(--title-color);\n}\n#wenyan h2 {\n padding-left: 0.4em;\n border-left: 0.4em solid var(--title-color);\n border-bottom: 1px solid var(--title-color);\n}\n#wenyan h1 {\n font-size: 1.5em;\n}\n#wenyan h2 {\n font-size: 1.3em;\n}\n#wenyan h3 {\n font-size: 1.2em;\n}\n#wenyan h4 {\n font-size: 1.2em;\n}\n#wenyan h5 {\n font-size: 1.2em;\n}\n#wenyan h6 {\n font-size: 1.2em;\n}\n#wenyan p,\n#wenyan ul,\n#wenyan ol {\n margin: 1em 0.8em;\n}\n#wenyan hr {\n margin: 1.5em auto;\n border-top: 1px solid var(--border);\n}\n#wenyan li > ol,\n#wenyan li > ul {\n margin: 0 0;\n}\n#wenyan ul,\n#wenyan ol {\n padding-left: 2em;\n}\n#wenyan ol li,\n#wenyan ul li {\n padding-left: 0.1em;\n}\n#wenyan blockquote {\n margin: 0;\n border-left: 0.3em solid var(--border-quote);\n padding-left: 1em;\n}\n#wenyan table {\n border-collapse: collapse;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table td,\n#wenyan table th {\n font-size: 0.75em;\n padding: 9px 12px;\n line-height: 22px;\n color: #222;\n border: 1px solid var(--border-quote);\n vertical-align: top;\n}\n#wenyan table th {\n font-weight: bold;\n color: var(--title-color);\n background-color: var(--inline-code-bg);\n}\n#wenyan strong {\n padding: 0 2px;\n font-weight: bold;\n}\n#wenyan p code {\n padding: 2px 4px;\n border-radius: 0.3em;\n font-family: var(--monospace-font);\n font-size: 0.9em;\n color: var(--code-color);\n background-color: var(--inline-code-bg);\n margin: 0 2px;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan pre {\n border-radius: 5px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan .footnote {\n color: var(--code-color);\n background-color: var(--inline-code-bg);\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n';
|
|
345
|
-
const __vite_glob_0_9 = '/*\n * Typora Theme - Rainbow / Author - thezbm\n * https://github.com/thezbm/typora-theme-rainbow\n */\n\n:root {\n --h-border-color: rgb(255, 191, 191);\n --h-bg-color: rgb(255, 232, 232);\n --table-border-color: rgb(255, 235, 211);\n --th-bg-color: rgb(255, 243, 228);\n --tr-bg-color: rgb(255, 249, 242);\n --code-bg-color: rgb(247, 247, 247);\n --block-shadow: 0.15em 0.15em 0.5em rgb(150, 150, 150);\n}\n#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n margin: 1.2em 0 1em;\n padding: 0px;\n font-weight: bold;\n}\n#wenyan h1 {\n font-size: 1.5em;\n text-align: center;\n text-shadow: 0.15em 0.15em 0.3em rgb(187, 187, 187);\n}\n#wenyan h2 {\n font-size: 1.3em;\n background-color: var(--h-bg-color);\n padding-left: 1em;\n padding-right: 1em;\n border-left: 0.5em solid var(--h-border-color);\n border-radius: 0.4em;\n display: inline-block;\n}\n#wenyan h3 {\n font-size: 1.3em;\n text-decoration: underline double var(--h-border-color);\n -webkit-text-decoration: underline double var(--h-border-color);\n text-decoration-thickness: 0.15em;\n}\n#wenyan h4 {\n font-size: 1.2em;\n text-decoration: underline dotted var(--h-border-color);\n -webkit-text-decoration: underline dotted var(--h-border-color);\n text-decoration-thickness: 0.2em;\n}\n#wenyan table {\n border-collapse: collapse;\n border: 0.25em solid var(--table-border-color);\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n overflow: auto;\n display: table;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table th {\n background-color: var(--th-bg-color);\n}\n#wenyan table th,\n#wenyan table td {\n font-size: 0.75em;\n text-align: center;\n border: 0.13em dashed var(--table-border-color);\n padding: 0.5em;\n padding: 9px 12px;\n line-height: 22px;\n vertical-align: top;\n}\n#wenyan table tr:nth-child(even) {\n background-color: var(--tr-bg-color);\n}\n#wenyan blockquote {\n font-size: 0.9em;\n margin: 0 1em;\n color: rgb(102, 102, 102);\n border-left: 0.25em solid rgb(169, 202, 255);\n padding: 0.5em 1em 0.6em 1em;\n}\n#wenyan blockquote::before {\n display: block;\n height: 2em;\n width: 1.5em;\n content: "🌈";\n font-size: 1.2em;\n}\n#wenyan blockquote p {\n margin: 0;\n}\n#wenyan hr {\n margin-top: 2em;\n margin-bottom: 2em;\n background-color: rgb(226, 226, 226);\n height: 0.13em;\n border: 0;\n}\n#wenyan pre {\n line-height: 2;\n padding: .5em;\n border-radius: 0.4em;\n box-shadow: var(--block-shadow);\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n font-family: var(--monospace-font);\n}\n#wenyan p code {\n font-family: var(--monospace-font);\n margin-left: 0.25em;\n margin-right: 0.25em;\n padding: 0.05em 0.3em;\n background-color: var(--code-bg-color);\n border-radius: 0.4em;\n box-shadow: 0.13em 0.13em 0.26em rgb(197, 197, 197);\n font-size: 0.9em;\n}\n#wenyan a {\n word-wrap: break-word;\n color: rgb(31, 117, 255);\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n border-radius: 5px;\n box-shadow: var(--block-shadow);\n}\n#wenyan .footnote {\n color: rgb(31, 117, 255);\n}\n#wenyan #footnotes p {\n display: flex;\n margin: 0;\n font-size: 0.9em;\n}\n#wenyan .footnote-num {\n display: inline;\n width: 10%;\n}\n#wenyan .footnote-txt {\n display: inline;\n width: 90%;\n word-wrap: break-word;\n word-break: break-all;\n}\n';
|
|
346
|
-
const __vite_glob_0_10 = '#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n}\n#wenyan * {\n box-sizing: border-box;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6,\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n font-size: 17px;\n line-height: 30px;\n margin-top: 20px;\n margin-bottom: 12px;\n position: relative;\n}\n#wenyan h1:before,\n#wenyan h2:before,\n#wenyan h3:before,\n#wenyan h4:before,\n#wenyan h5:before,\n#wenyan h6:before {\n content: "";\n display: inline-block;\n vertical-align: 1px;\n width: 10px;\n height: 26px;\n margin-right: 6px;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIyNiIgdmlld0JveD0iMCAwIDEwIDI2IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNOS41IDYuNTY2NTlMNC40OTk5NCAxOS40MzI2TDAgMTkuNDMyNkw1LjAwMDA2IDYuNTY2NTlMOS41IDYuNTY2NTlaIiBmaWxsPSIjRkY0MDNBIi8+Cjwvc3ZnPgo=);\n background-repeat: no-repeat;\n background-size: cover;\n background-position-y: 8px;\n}\n#wenyan ul,\n#wenyan ol {\n padding-left: 1.2em;\n}\n#wenyan li {\n margin-left: 1.2em;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan table {\n margin-left: auto;\n margin-right: auto;\n border-collapse: collapse;\n table-layout: fixed;\n overflow: auto;\n border-spacing: 0;\n font-size: 1em;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table td,\n#wenyan table th {\n height: 40px;\n padding: 9px 12px;\n line-height: 22px;\n color: #222;\n min-width: 88px;\n border: 1px solid #d8d8d8;\n vertical-align: top;\n}\n#wenyan blockquote {\n margin: 0;\n margin-bottom: 20px;\n padding: 0 16px;\n position: relative;\n color: #999;\n text-align: justify;\n}\n#wenyan blockquote:before {\n content: " ";\n left: 0;\n position: absolute;\n width: 2px;\n height: 100%;\n background: #f2f2f2;\n}\n#wenyan p code {\n font-family: var(--monospace-font);\n color: #1e6bb8;\n}\n/* 代码块 */\n#wenyan pre {\n border-radius: 3px;\n border: 1px solid #e8e8e8;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n}\n#wenyan pre code {\n font-family: var(--monospace-font);\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n}\n#wenyan hr {\n width: 100%;\n height: 1px;\n background-color: #e8e8e8;\n border: none;\n margin: 20px 0;\n}\n/* 链接 */\n#wenyan a {\n word-wrap: break-word;\n color: #0069c2;\n}\n/* 脚注 */\n#wenyan #footnotes ul {\n font-size: 0.9em;\n margin: 0;\n padding-left: 1.2em;\n}\n#wenyan #footnotes li {\n margin: 0 0 0 1.2em;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan .footnote {\n color: #0069c2;\n}\n';
|
|
347
|
-
const __vite_glob_0_11 = "#wenyan {\n font-family: var(--sans-serif-font);\n line-height: 1.75;\n font-size: 16px;\n}\n#wenyan * {\n box-sizing: border-box;\n}\n#wenyan h1,\n#wenyan h2,\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6,\n#wenyan p,\n#wenyan pre {\n margin: 1em 0;\n}\n#wenyan h1,\n#wenyan h2 {\n clear: left;\n font-size: 1.2em;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 1.16667em;\n margin-top: 2.33333em;\n}\n#wenyan h3,\n#wenyan h4,\n#wenyan h5,\n#wenyan h6 {\n clear: left;\n font-size: 1.1em;\n font-weight: 600;\n line-height: 1.5;\n margin-bottom: 1.27273em;\n margin-top: 1.90909em;\n}\n#wenyan ul,\n#wenyan ol {\n padding-left: 1.2em;\n}\n#wenyan li {\n margin-left: 1.2em;\n}\n#wenyan img {\n max-width: 100%;\n height: auto;\n margin: 0 auto;\n display: block;\n}\n#wenyan table {\n border-collapse: collapse;\n font-size: 15px;\n margin: 1.4em auto;\n max-width: 100%;\n table-layout: fixed;\n text-align: left;\n width: 100%;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan table th {\n background: #ebeced;\n color: #191b1f;\n font-weight: 500;\n}\n#wenyan table td,\n#wenyan table th {\n border: 1px solid #c4c7ce;\n height: 24px;\n line-height: 24px;\n padding: 3px 12px;\n}\n#wenyan blockquote {\n border-left: 3px solid #c4c7ce;\n margin: 1.5em 0;\n padding: 0 0 1em 1em;\n color: #535861;\n}\n#wenyan code {\n margin: 0px 2px;\n padding: 3px 4px;\n border-radius: 3px;\n font-family: var(--monospace-font);\n background-color: rgb(246, 246, 246);\n}\n#wenyan pre {\n word-wrap: normal;\n background: #f8f8fa;\n border-radius: 4px;\n line-height: 2;\n margin: 1em 0.5em;\n padding: .5em;\n white-space: pre;\n word-break: normal;\n}\n#wenyan pre code {\n display: block;\n overflow-x: auto;\n margin: .5em;\n padding: 0;\n}\n#wenyan hr {\n border: none;\n border-top: 1px solid #c4c7ce;\n margin: 2em auto;\n max-width: 100%;\n width: 240px;\n}\n/* 链接 */\n#wenyan a {\n word-wrap: break-word;\n color: #0069c2;\n}\n/* 脚注 */\n#wenyan #footnotes ul {\n font-size: 0.9em;\n margin: 0;\n padding-left: 1.2em;\n}\n#wenyan #footnotes li {\n margin: 0 0 0 1.2em;\n word-wrap: break-word;\n word-break: break-all;\n}\n#wenyan .footnote {\n color: #0069c2;\n}\n";
|
|
348
|
-
const themeMeta = [
|
|
349
|
-
{
|
|
350
|
-
id: "default",
|
|
351
|
-
name: "Default",
|
|
352
|
-
description: "A clean, classic layout ideal for long-form reading.",
|
|
353
|
-
appName: "默认",
|
|
354
|
-
author: ""
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
id: "orangeheart",
|
|
358
|
-
name: "OrangeHeart",
|
|
359
|
-
description: "A vibrant and elegant theme in warm orange tones.",
|
|
360
|
-
appName: "Orange Heart",
|
|
361
|
-
author: "evgo2017"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: "rainbow",
|
|
365
|
-
name: "Rainbow",
|
|
366
|
-
description: "A colorful, lively theme with a clean layout.",
|
|
367
|
-
appName: "Rainbow",
|
|
368
|
-
author: "thezbm"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
id: "lapis",
|
|
372
|
-
name: "Lapis",
|
|
373
|
-
description: "A minimal and refreshing theme in cool blue tones.",
|
|
374
|
-
appName: "Lapis",
|
|
375
|
-
author: "YiNN"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
id: "pie",
|
|
379
|
-
name: "Pie",
|
|
380
|
-
description: "Inspired by sspai.com and Misty — modern, sharp, and stylish.",
|
|
381
|
-
appName: "Pie",
|
|
382
|
-
author: "kevinzhao2233"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
id: "maize",
|
|
386
|
-
name: "Maize",
|
|
387
|
-
description: "A crisp, light theme with a soft maize palette.",
|
|
388
|
-
appName: "Maize",
|
|
389
|
-
author: "BEATREE"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
id: "purple",
|
|
393
|
-
name: "Purple",
|
|
394
|
-
description: "Clean and minimalist, with a subtle purple accent.",
|
|
395
|
-
appName: "Purple",
|
|
396
|
-
author: "hliu202"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
id: "phycat",
|
|
400
|
-
name: "Phycat",
|
|
401
|
-
description: "物理猫-薄荷:a mint-green theme with clear structure and hierarchy.",
|
|
402
|
-
appName: "物理猫-薄荷",
|
|
403
|
-
author: "sumruler"
|
|
404
|
-
}
|
|
405
|
-
];
|
|
406
|
-
const themeCssModules = /* @__PURE__ */ Object.assign({
|
|
407
|
-
"./themes/default.css": __vite_glob_0_0,
|
|
408
|
-
"./themes/juejin_default.css": __vite_glob_0_1,
|
|
409
|
-
"./themes/lapis.css": __vite_glob_0_2,
|
|
410
|
-
"./themes/maize.css": __vite_glob_0_3,
|
|
411
|
-
"./themes/medium_default.css": __vite_glob_0_4,
|
|
412
|
-
"./themes/orangeheart.css": __vite_glob_0_5,
|
|
413
|
-
"./themes/phycat.css": __vite_glob_0_6,
|
|
414
|
-
"./themes/pie.css": __vite_glob_0_7,
|
|
415
|
-
"./themes/purple.css": __vite_glob_0_8,
|
|
416
|
-
"./themes/rainbow.css": __vite_glob_0_9,
|
|
417
|
-
"./themes/toutiao_default.css": __vite_glob_0_10,
|
|
418
|
-
"./themes/zhihu_default.css": __vite_glob_0_11
|
|
419
|
-
});
|
|
420
|
-
function createTheme(meta) {
|
|
421
|
-
const cssPath = `./themes/${meta.id}.css`;
|
|
422
|
-
const cssModuleLoader = themeCssModules[cssPath];
|
|
423
|
-
if (!cssModuleLoader) {
|
|
424
|
-
console.warn(`[Themes] CSS file not found for theme: ${meta.id}`);
|
|
425
|
-
return null;
|
|
426
|
-
}
|
|
427
|
-
return {
|
|
428
|
-
...meta,
|
|
429
|
-
getCss: normalizeCssLoader(cssModuleLoader)
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
const themes = Object.fromEntries(
|
|
433
|
-
themeMeta.map((meta) => createTheme(meta)).filter((t) => t !== null).map((t) => [t.id, t])
|
|
434
|
-
);
|
|
435
|
-
function getAllThemes() {
|
|
436
|
-
return Object.values(themes);
|
|
437
|
-
}
|
|
438
|
-
const otherThemeIds = [
|
|
439
|
-
"juejin_default",
|
|
440
|
-
"medium_default",
|
|
441
|
-
"toutiao_default",
|
|
442
|
-
"zhihu_default"
|
|
443
|
-
];
|
|
444
|
-
const otherThemes = Object.fromEntries(
|
|
445
|
-
otherThemeIds.map((id) => [
|
|
446
|
-
id,
|
|
447
|
-
{
|
|
448
|
-
id,
|
|
449
|
-
name: "",
|
|
450
|
-
description: "",
|
|
451
|
-
appName: "",
|
|
452
|
-
author: "",
|
|
453
|
-
getCss: normalizeCssLoader(themeCssModules[`./themes/${id}.css`])
|
|
454
|
-
}
|
|
455
|
-
])
|
|
456
|
-
);
|
|
457
|
-
export {
|
|
458
|
-
getAllThemes,
|
|
459
|
-
otherThemes,
|
|
460
|
-
themes
|
|
461
|
-
};
|
package/dist/types/core.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface FrontMatterResult {
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
cover?: string;
|
|
5
|
-
body: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function handleFrontMatter(markdown: string): Promise<FrontMatterResult>;
|
|
9
|
-
export function configureMarked(): Promise<void>;
|
|
10
|
-
export function renderMarkdown(content: string): Promise<string>;
|
|
11
|
-
export function getContentForGzhBuiltinTheme(
|
|
12
|
-
wenyanElement: HTMLElement,
|
|
13
|
-
themeId: string,
|
|
14
|
-
hlThemeId: string,
|
|
15
|
-
isMacStyle?: boolean,
|
|
16
|
-
isAddFootnote?: boolean
|
|
17
|
-
): Promise<string>;
|
package/dist/types/hltheme.d.ts
DELETED
package/dist/types/theme.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type Theme = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
appName: string;
|
|
6
|
-
author: string;
|
|
7
|
-
getCss: () => Promise<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare const themes: Record<string, Theme>;
|
|
10
|
-
export declare function getAllThemes(): Theme[];
|
|
11
|
-
export declare const otherThemes: Record<string, Theme>;
|
package/dist/types/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function normalizeCssLoader(loaderOrContent: any): () => Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { File, Blob } from "formdata-node";
|
|
2
|
-
export type UploadResponse = {
|
|
3
|
-
media_id: string;
|
|
4
|
-
url: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function fetchAccessToken(appId?: string, appSecret?: string): Promise<any>;
|
|
7
|
-
export declare function uploadMaterial(type: string, fileData: Blob | File, fileName: string, accessToken: string): Promise<any>;
|
|
8
|
-
export declare function publishArticle(title: string, content: string, thumbMediaId: string, accessToken: string): Promise<any>;
|
package/dist/types/wrapper.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type GzhContent = {
|
|
2
|
-
title?: string;
|
|
3
|
-
cover?: string;
|
|
4
|
-
content: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function getGzhContent(content: string, themeId: string, hlThemeId: string, isMacStyle?: boolean, isAddFootnote?: boolean): Promise<GzhContent>;
|
package/dist/utils-YieK94fG.js
DELETED
|
File without changes
|
|
File without changes
|