fix: keep A2 preview on CJK fonts and tidy theme docs
Drop Cascadia from the A2 stack so box lines match WeChat paste, and sync template/README comments. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
751afd89de
commit
5f9cf37c48
@ -39,7 +39,7 @@
|
||||
- **任务列表**:`✅` / `⬜`
|
||||
- **行内代码**:`『…』`
|
||||
- **引用**:`└─⚡`(多行各自成行)
|
||||
- **分隔线**:`➖➖➖➖➖`
|
||||
- **分隔线**:`· · · · · · · ·`
|
||||
- **链接**:`🔗文案` + URL
|
||||
- **图片**:纯文本 `🖼 说明:url`;长文栏正常渲染图片
|
||||
- **表格**:全角字符网格(Theme B 为 pipe 风格)
|
||||
|
||||
@ -911,14 +911,12 @@
|
||||
line-height: 1.85;
|
||||
letter-spacing: 0;
|
||||
color: var(--ink);
|
||||
/* 与微信一致:CJK 优先,全角框线才和汉字/emoji 同宽 */
|
||||
/* 与微信一致:纯 CJK 字体,避免 Cascadia 半角框线把对齐弄坏 */
|
||||
font-family:
|
||||
'Microsoft YaHei',
|
||||
'PingFang SC',
|
||||
'Noto Sans SC',
|
||||
'Cascadia Code',
|
||||
Consolas,
|
||||
monospace;
|
||||
sans-serif;
|
||||
font-variant-ligatures: none;
|
||||
|
||||
> :global(div) {
|
||||
@ -941,12 +939,6 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
:global(.emoji-h2-rule) {
|
||||
display: inline;
|
||||
opacity: 1;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
:global(.emoji-h3) {
|
||||
margin: 0.9em 0 0.4em;
|
||||
font-weight: 400;
|
||||
@ -960,7 +952,6 @@
|
||||
:global(.emoji-hr) {
|
||||
margin: 1.1em 0;
|
||||
text-align: left;
|
||||
letter-spacing: 0.06em;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
@ -969,15 +960,8 @@
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
:global(.emoji-image) {
|
||||
margin: 0.55em 0;
|
||||
white-space: pre-wrap;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
:global(.emoji-table pre),
|
||||
:global(.emoji-code pre) {
|
||||
/* 必须跟预览区同一套 CJK 字体:Cascadia 下 ─ 半角、汉字全角,右侧框线必断 */
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@ -131,7 +131,7 @@ function buildFullwidthBox(matrix: string[][], widths: number[]): string[] {
|
||||
}
|
||||
|
||||
/**
|
||||
* A2 线框表:只用全角 -|(与代码块同一套)。
|
||||
* A2 线框表:全角 -|(微信/雅黑可对齐)。
|
||||
* 顶/底/表头分隔线纯 -(不用 | 接头,否则竖笔画会冒出横线)。
|
||||
*/
|
||||
function buildFrameBox(matrix: string[][], widths: number[]): string[] {
|
||||
|
||||
@ -90,7 +90,7 @@ function hello(name) {
|
||||
|
||||
---
|
||||
|
||||
切换顶部主题 A / B / C / D,对比同一篇语法的排版差异。
|
||||
切换顶部主题 A / A2 / B / C / D,对比同一篇语法的排版差异。
|
||||
`,
|
||||
};
|
||||
|
||||
|
||||
@ -166,8 +166,7 @@ export const THEME_A: EmojiTheme = {
|
||||
|
||||
/**
|
||||
* A2 · 商务正式(带色)
|
||||
* 职场向 emoji 自带色彩:📋📌🔹✅1️⃣… + 双线框线。
|
||||
* 不用花朵/闪粉/颜文字;适合群通报、对外摘要、评论区正式发言。
|
||||
* 职场向 emoji:📋📌🔹✅1️⃣…;H1 用 B 式线框;表格用全角 -|。
|
||||
*/
|
||||
export const THEME_A2: EmojiTheme = {
|
||||
id: 'A2',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user