新增能力:内置 4 套红头、3 套正式文档和 3 套标书主题,支持主题推荐页边距、页面装饰、页眉页脚和页码;增加结构化公文、项目报告及标书 Front Matter,内置 Fandol 中文字体、两份教程和 14 份主题示例。 桌面工作流:重组更多菜单,增加新建、保存、另存为快捷键和未保存确认;另存为后跟随新路径,主题示例自动切换主题,Desktop 发行包完整携带教程、示例与字体。 问题修复:修正红头标题居中与正式文档字体;围栏代码按正文宽度自动换行,长内容安全断行,至少两行即可在当前页分页,并统一保留 8px 左侧内容留白;Docker Web 镜像正确打包 samples。 兼容与部署:未声明主题推荐设置时继续使用 16mm 默认页边距;Web 隐藏不适用的另存为。正式镜像 yixiong/md-to-pdf:v0.5.1 内容 ID 为 sha256:72f519a69bfd6cb2f6df30c2be938e58ceb6f20e4748a32551874de3d436b276,Compose 健康运行。 验证结果:最终修复前 65 个测试文件、286 项测试通过,最终代码块与主题定向测试 27 项通过;全项目类型检查、生产构建和 git diff --check 通过。容器检出 14 套主题、17 份 Markdown,代码块回归 PDF 为 2 页且无越界。NSIS SHA-256 为 676CCE73D782B0B15AC6BC68F253CFBC4740383583E4DAA98F746EDF9999C5CC,ZIP SHA-256 为 82BF6ADF1200604F145CC86FA3ED193955CF6741EBEE3DF8953483515CFF621F。
173 lines
3.0 KiB
CSS
173 lines
3.0 KiB
CSS
:root {
|
|
--briefing-red: #c40009;
|
|
--briefing-ink: #1f1f1f;
|
|
--briefing-muted: #666;
|
|
--briefing-soft: #fff6f4;
|
|
}
|
|
|
|
#write {
|
|
color: var(--briefing-ink);
|
|
font-family:
|
|
"Noto Serif CJK SC", "Source Han Serif SC",
|
|
"Microsoft YaHei", "SimSun", serif;
|
|
font-size: 18px;
|
|
line-height: 1.8;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
#write .doc-masthead-briefing {
|
|
margin: 0 0 11mm;
|
|
break-inside: avoid;
|
|
}
|
|
|
|
#write .doc-briefing-masthead {
|
|
margin: 0;
|
|
padding: 3mm 0 4mm;
|
|
border-top: 1mm solid var(--briefing-red);
|
|
border-bottom: 1mm solid var(--briefing-red);
|
|
color: var(--briefing-red);
|
|
font-family:
|
|
"STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
|
|
font-size: 2.35em;
|
|
font-weight: 700;
|
|
letter-spacing: 0.18em;
|
|
line-height: 1.35;
|
|
text-align: center;
|
|
text-indent: 0;
|
|
}
|
|
|
|
#write .doc-briefing-meta {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.5mm 8mm;
|
|
padding: 3mm 1mm 2mm;
|
|
border-bottom: 0.35mm solid var(--briefing-red);
|
|
color: #444;
|
|
font-size: 0.78em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#write .doc-briefing-publisher,
|
|
#write .doc-briefing-date {
|
|
text-align: right;
|
|
}
|
|
|
|
#write .doc-title {
|
|
margin: 0 0 8mm;
|
|
font-family:
|
|
"STZhongsong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
|
|
font-size: 1.65em;
|
|
font-weight: 700;
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
}
|
|
|
|
#write h1:not(.doc-title),
|
|
#write h2,
|
|
#write h3,
|
|
#write h4 {
|
|
margin: 1.35em 0 0.5em;
|
|
font-family:
|
|
"Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
|
|
font-weight: 700;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#write h1:not(.doc-title) {
|
|
color: var(--briefing-red);
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
#write h2 {
|
|
padding-bottom: 0.25em;
|
|
border-bottom: 0.35mm solid #d8a2a2;
|
|
color: #8f1015;
|
|
font-size: 1.22em;
|
|
}
|
|
|
|
#write h3,
|
|
#write h4 {
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
#write p {
|
|
margin: 0 0 0.75em;
|
|
text-align: justify;
|
|
text-indent: 2em;
|
|
}
|
|
|
|
#write li > p,
|
|
#write blockquote p,
|
|
#write td p,
|
|
#write th p {
|
|
text-indent: 0;
|
|
}
|
|
|
|
#write .doc-briefing-contact {
|
|
margin-top: 10mm;
|
|
padding: 2mm 0;
|
|
border-top: 0.6mm solid var(--briefing-red);
|
|
border-bottom: 0.25mm solid var(--briefing-red);
|
|
color: var(--briefing-muted);
|
|
font-size: 0.78em;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#write blockquote {
|
|
margin: 1em 0;
|
|
padding: 0.75em 1em;
|
|
border-left: 0.25em solid var(--briefing-red);
|
|
background: var(--briefing-soft);
|
|
}
|
|
|
|
#write table {
|
|
width: 100%;
|
|
margin: 1em 0;
|
|
border-collapse: collapse;
|
|
font-size: 0.88em;
|
|
}
|
|
|
|
#write th,
|
|
#write td {
|
|
padding: 0.5em 0.7em;
|
|
border: 1px solid #c7c7c7;
|
|
}
|
|
|
|
#write th {
|
|
color: #7d1116;
|
|
background: #fbe9e8;
|
|
}
|
|
|
|
#write a {
|
|
color: #9e1117;
|
|
}
|
|
|
|
#write code {
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 3px;
|
|
background: #f5f5f5;
|
|
font-family: "Cascadia Mono", Consolas, monospace;
|
|
font-size: 0.82em;
|
|
}
|
|
|
|
#write pre,
|
|
#write .md-fences {
|
|
margin: 1em 0;
|
|
padding: 0.9em 1em;
|
|
overflow: auto;
|
|
border: 1px solid #ddd;
|
|
background: #f7f7f7;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#write pre code {
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
#write img,
|
|
#write svg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|