AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(web): decouple magazine cover into independent setting from numbered headings
tianma-ifaa481716f41c
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex c71931ed..5dd5038a 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -4545,6 +4545,7 @@ const RichEditorPane = ({data-note-heading-style={noteProseStyle.headingStyle}data-note-quote-style={noteProseStyle.quoteStyle}data-note-emphasis-style={noteProseStyle.emphasisStyle}+ data-note-magazine-cover={noteProseStyle.showMagazineCover ? "true" : "false"}data-note-title={title || getEditableMemoTitle(memo?.title)}style={{...noteProseCssVariables(noteProse),@@ -4705,7 +4706,7 @@ const RichEditorPane = ({onAsk={() => requestSelectionAi("ask")}/></BubbleMenu>- {noteProseStyle.headingStyle === "numbered" ? (+ {noteProseStyle.showMagazineCover ? (<EditorMagazineHeadereditor={editor}title={title || getEditableMemoTitle(memo?.title)}diff --git a/apps/web/src/components/EditorPhonePreview.tsx b/apps/web/src/components/EditorPhonePreview.tsxindex 7b35ea1e..aa100351 100644--- a/apps/web/src/components/EditorPhonePreview.tsx+++ b/apps/web/src/components/EditorPhonePreview.tsx@@ -68,7 +68,7 @@ export const EditorPhonePreview = ({ editor, title, noteProse, scrollContainer,const { t } = useTranslation();const { mermaidTheme } = useMermaidTheme();const noteProseStyle = useNoteProseStylePreference();- const proseKey = `${noteProse.palette}:${noteProse.fontSize}:${noteProse.lineHeight}:${noteProse.customCss}:${noteProseStyle.headingStyle}:${noteProseStyle.quoteStyle}:${noteProseStyle.emphasisStyle}`;+ const proseKey = `${noteProse.palette}:${noteProse.fontSize}:${noteProse.lineHeight}:${noteProse.customCss}:${noteProseStyle.headingStyle}:${noteProseStyle.quoteStyle}:${noteProseStyle.emphasisStyle}:${noteProseStyle.showMagazineCover}`;const previewSyncGeneration = useRef(0);const [markup, setMarkup] = useState({ html: "", style: "" });const [follow, setFollow] = useState(readEditorPhonePreviewFollowPreference);@@ -211,7 +211,7 @@ export const EditorPhonePreview = ({ editor, title, noteProse, scrollContainer,<span className="edgeever-phone-device__lens" /></div><div className="edgeever-phone-preview" ref={previewRef}>- {title?.trim() && noteProseStyle.headingStyle !== "numbered" ? (+ {title?.trim() && !noteProseStyle.showMagazineCover ? (<p className="edgeever-phone-shell-title">{title.trim()}</p>) : null}{markup.html ? (diff --git a/apps/web/src/components/settings/PreferenceCard.test.mjs b/apps/web/src/components/settings/PreferenceCard.test.mjsindex bd3c8a77..be687e49 100644--- a/apps/web/src/components/settings/PreferenceCard.test.mjs+++ b/apps/web/src/components/settings/PreferenceCard.test.mjs@@ -77,6 +77,8 @@ describe("reading typography settings", () => {expect(preferenceCard).toContain('t("settings.editorBodyHeadingStyleTitle")');expect(preferenceCard).toContain('t("settings.editorBodyQuoteStyleTitle")');expect(preferenceCard).toContain('t("settings.editorBodyEmphasisStyleTitle")');+ expect(preferenceCard).toContain('t("settings.editorBodyMagazineCoverTitle")');+ expect(preferenceCard).toContain('t("settings.editorBodyMagazineCoverDescription")');expect(preferenceCard).toContain('t("settings.editorBodyCssTitle")');expect(preferenceCard.slice(preferenceCard.indexOf("editorBodyCssTitle") - 500, preferenceCard.indexOf("editorBodyCssTitle"))).toContain("lg:flex");expect(preferenceCard).toContain('t("settings.editorBodyCssDescription")');diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsxindex af8fffc5..7950c77b 100644--- a/apps/web/src/components/settings/PreferenceCard.tsx+++ b/apps/web/src/components/settings/PreferenceCard.tsx@@ -5,7 +5,7 @@ import { FONT_CATALOG, NOTE_BODY_FONT_MENU_GROUPS, isRemoteNoteImageFont, type Rimport { FontLoadFeedback } from "@/components/FontLoadFeedback";import { editorFontLoadState, uiFontLoadState, retryEditorCatalogFont, retryUiCatalogFont } from "@/lib/editor-catalog-fonts";import { FontLabel } from "@/components/FontLabel";-import { AlignVerticalSpaceAround, AppWindow, BookOpenText, ChartNoAxesCombined, Code2, Heading, Highlighter, Image, Keyboard, Languages, ListTree, MousePointerClick, Palette, Quote, Sparkles, SpellCheck, SunMoon, Type } from "lucide-react";+import { AlignVerticalSpaceAround, AppWindow, BookOpenText, ChartNoAxesCombined, Code2, Heading, Highlighter, Image, Keyboard, LayoutTemplate, Languages, ListTree, MousePointerClick, Palette, Quote, Sparkles, SpellCheck, SunMoon, Type } from "lucide-react";import { useState, useEffect, useSyncExternalStore, type ReactNode } from "react";import { useTranslation } from "react-i18next";import type {@@ -640,6 +640,23 @@ export const PreferenceCard = ({</div></div>+ <div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4">+ <div className="flex min-w-0 items-center gap-3">+ <LayoutTemplate className="h-4 w-4 shrink-0 text-slate-500" />+ <div className="min-w-0">+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.editorBodyMagazineCoverTitle")}</div>+ <p className="text-xs leading-5 text-slate-500">{t("settings.editorBodyMagazineCoverDescription")}</p>+ </div>+ </div>+ <div className="w-full shrink-0 sm:w-auto">+ <Switch+ checked={noteProseStyle.showMagazineCover}+ aria-label={t("settings.editorBodyMagazineCoverTitle")}+ onCheckedChange={(checked) => writeNoteProseStylePreference({ showMagazineCover: checked })}+ />+ </div>+ </div>+<div className="hidden min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4 lg:flex"><div className="flex min-w-0 items-center gap-3"><Code2 className="h-4 w-4 shrink-0 text-slate-500" />diff --git a/apps/web/src/lib/note-prose-style-preference.ts b/apps/web/src/lib/note-prose-style-preference.tsindex 05ba011e..786fd4e0 100644--- a/apps/web/src/lib/note-prose-style-preference.ts+++ b/apps/web/src/lib/note-prose-style-preference.ts@@ -21,6 +21,7 @@ export const DEFAULT_NOTE_PROSE_STYLE_PREFERENCES: NoteProseStylePreferences = {headingStyle: DEFAULT_NOTE_PROSE_HEADING_STYLE,quoteStyle: DEFAULT_NOTE_PROSE_QUOTE_STYLE,emphasisStyle: DEFAULT_NOTE_PROSE_EMPHASIS_STYLE,+ showMagazineCover: false,};export const resolveStoredNoteProseStylePreference = (@@ -32,6 +33,7 @@ export const resolveStoredNoteProseStylePreference = (headingStyle?: unknown;quoteStyle?: unknown;emphasisStyle?: unknown;+ showMagazineCover?: unknown;} | null;if (typeof parsed !== "object" || parsed === null) {return DEFAULT_NOTE_PROSE_STYLE_PREFERENCES;@@ -40,6 +42,7 @@ export const resolveStoredNoteProseStylePreference = (headingStyle: parseNoteProseHeadingStyle(parsed.headingStyle) ?? DEFAULT_NOTE_PROSE_HEADING_STYLE,quoteStyle: parseNoteProseQuoteStyle(parsed.quoteStyle) ?? DEFAULT_NOTE_PROSE_QUOTE_STYLE,emphasisStyle: parseNoteProseEmphasisStyle(parsed.emphasisStyle) ?? DEFAULT_NOTE_PROSE_EMPHASIS_STYLE,+ showMagazineCover: typeof parsed.showMagazineCover === "boolean" ? parsed.showMagazineCover : false,};} catch {return DEFAULT_NOTE_PROSE_STYLE_PREFERENCES;@@ -63,6 +66,7 @@ export const writeNoteProseStylePreference = (headingStyle: NoteProseHeadingStyle;quoteStyle: NoteProseQuoteStyle;emphasisStyle: NoteProseEmphasisStyle;+ showMagazineCover: boolean;}>,): NoteProseStylePreferences => {const current = readNoteProseStylePreference();@@ -70,6 +74,7 @@ export const writeNoteProseStylePreference = (headingStyle: parseNoteProseHeadingStyle(patch.headingStyle) ?? current.headingStyle,quoteStyle: parseNoteProseQuoteStyle(patch.quoteStyle) ?? current.quoteStyle,emphasisStyle: parseNoteProseEmphasisStyle(patch.emphasisStyle) ?? current.emphasisStyle,+ showMagazineCover: typeof patch.showMagazineCover === "boolean" ? patch.showMagazineCover : current.showMagazineCover,};if (typeof window === "undefined") {unsavedNoteProseStylePreference = next;@@ -99,6 +104,7 @@ export const useNoteProseStylePreference = (): NoteProseStylePreferences => {headingStyle: parseNoteProseHeadingStyle(detail.headingStyle) ?? DEFAULT_NOTE_PROSE_HEADING_STYLE,quoteStyle: parseNoteProseQuoteStyle(detail.quoteStyle) ?? DEFAULT_NOTE_PROSE_QUOTE_STYLE,emphasisStyle: parseNoteProseEmphasisStyle(detail.emphasisStyle) ?? DEFAULT_NOTE_PROSE_EMPHASIS_STYLE,+ showMagazineCover: typeof detail.showMagazineCover === "boolean" ? detail.showMagazineCover : false,});return;}diff --git a/apps/web/src/lib/wechat-copy.test.mjs b/apps/web/src/lib/wechat-copy.test.mjsindex 0c3df5f4..2ac3bb99 100644--- a/apps/web/src/lib/wechat-copy.test.mjs+++ b/apps/web/src/lib/wechat-copy.test.mjs@@ -203,6 +203,42 @@ describe("preparePublishArticle", () => {expect(css(root.querySelector("u"))).toContain("border-bottom:2px solid #A7F3D0");expect(css(root.querySelector("mark"))).toContain("background-color:#fde68a");expect(css(root.querySelector("code"))).toContain("background:#f3f4f6");+ expect(root.querySelector("[data-ee-cover-card]")).toBeNull();+ expect(root.querySelector("[data-ee-toc-cards]")).toBeNull();+ } finally {+ globalThis.getComputedStyle = previous;+ }+ });++ test("renders magazine cover card and toc cards only when showMagazineCover is enabled", () => {+ const container = document.createElement("div");+ container.dataset.notePalette = "emerald";+ container.dataset.noteHeadingStyle = "numbered";+ container.dataset.noteMagazineCover = "true";+ container.dataset.noteTitle = "深度评测文章";+ const previous = globalThis.getComputedStyle;+ globalThis.getComputedStyle = () => ({+ getPropertyValue: (name) => ({+ "--note-palette-accent": "#059669",+ "--note-palette-light-accent": "#059669",+ "--note-palette-text": "#374151",+ "--note-palette-surface": "#F0FDF4",+ "--note-palette-divider": "#A7F3D0",+ "--note-palette-code-bg": "#ECFDF5",+ "--note-palette-code-text": "#047857",+ })[name] ?? "",+ });+ try {+ const root = preparePublishArticle([+ "<h2>第一章</h2>",+ "<p>内容一</p>",+ "<h2>第二章</h2>",+ "<p>内容二</p>",+ ].join(""), container);+ expect(root.querySelector("[data-ee-cover-card]")).not.toBeNull();+ expect(root.querySelector("[data-ee-cover-card]")?.textContent).toContain("深度评测文章");+ expect(root.querySelector("[data-ee-toc-cards]")).not.toBeNull();+ expect(root.querySelector("[data-ee-toc-cards]")?.textContent).toContain("2 PARTS");} finally {globalThis.getComputedStyle = previous;}diff --git a/apps/web/src/lib/wechat-copy.ts b/apps/web/src/lib/wechat-copy.tsindex e554412f..b501e7ff 100644--- a/apps/web/src/lib/wechat-copy.ts+++ b/apps/web/src/lib/wechat-copy.ts@@ -178,7 +178,7 @@ const applyLegacyWeChatStyles = (});}- if (proseStyle.headingStyle === "numbered") {+ if (proseStyle.showMagazineCover) {root.querySelectorAll<HTMLElement>("h1").forEach((heading) => {if (heading.querySelector("[data-ee-cover-card]")) return;const titleHtml = heading.innerHTML;@@ -198,26 +198,20 @@ const applyLegacyWeChatStyles = (].join("");});- const h2List = Array.from(root.querySelectorAll<HTMLElement>("h2"));- h2List.forEach((heading) => {- const prev = heading.previousElementSibling;- if (prev && prev.tagName === "HR") {- prev.remove();- }- });- if (h2List.length >= 2 && !root.querySelector("[data-ee-toc-cards]")) {+ const h2ListForToc = Array.from(root.querySelectorAll<HTMLElement>("h2"));+ if (h2ListForToc.length >= 2 && !root.querySelector("[data-ee-toc-cards]")) {const toc = document.createElement("section");toc.setAttribute("data-ee-publish-chrome", "true");toc.setAttribute("data-ee-toc-cards", "true");toc.style.cssText = "margin: 0 0 28px;";- const cardsHtml = h2List.map((heading, index) => {+ const cardsHtml = h2ListForToc.map((heading, index) => {const num = String(index + 1).padStart(2, "0");const rawText = (heading.textContent || "").replace(/^\s*(?:第[一二三四五六七八九十百\d]+[章节部分篇]\s*[::·.\s]*|\d+\s*[.、·::]\s*|[一二三四五六七八九十]+\s*[、..]\s*)/u, "").trim();const shortTitle = rawText.slice(0, 6) || `章节 ${num}`;const subTitle = rawText.length > 6 ? rawText.slice(6, 18) : `PART ${num}`;- const isHighlighted = index < h2List.length - 1 || h2List.length === 2 && index === 0;+ const isHighlighted = index < h2ListForToc.length - 1 || h2ListForToc.length === 2 && index === 0;const useSolidAccent = isHighlighted && Boolean(colors);if (useSolidAccent) {return [@@ -238,19 +232,29 @@ const applyLegacyWeChatStyles = (}).join("");toc.innerHTML = [`<section data-ee-publish-chrome="true" style="margin-bottom: 10px;">`,- `<p data-ee-publish-chrome="true" style="font-size: 10px; color: #9ca3af; margin: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;">${h2List.length} PARTS · 全文导览</p>`,+ `<p data-ee-publish-chrome="true" style="font-size: 10px; color: #9ca3af; margin: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;">${h2ListForToc.length} PARTS · 全文导览</p>`,`</section>`,`<section data-ee-publish-chrome="true" style="font-size: 0;">${cardsHtml}</section>`,].join("");- h2List[0].parentElement?.insertBefore(toc, h2List[0]);+ h2ListForToc[0].parentElement?.insertBefore(toc, h2ListForToc[0]);}+ }++ if (proseStyle.headingStyle === "numbered") {+ const h2List = Array.from(root.querySelectorAll<HTMLElement>("h2"));+ h2List.forEach((heading) => {+ const prev = heading.previousElementSibling;+ if (prev && prev.tagName === "HR") {+ prev.remove();+ }+ });h2List.forEach((heading, index) => {if (heading.querySelector("[data-ee-heading-number]")) return;const num = String(index + 1).padStart(2, "0");const isLast = h2List.length > 1 && index === h2List.length - 1;const partLabel = isLast ? "LAST" : "PART";- const subLabel = isLast ? "SUMMARY · 核心总结与延伸" : `SECTION ${num} · 章节核心脉络`;+ const subLabel = isLast ? "SUMMARY" : `SECTION ${num}`;const titleHtml = heading.innerHTML;heading.innerHTML = [`<section data-ee-publish-chrome="true" data-ee-heading-number="true" style="display: inline-block; vertical-align: middle; text-align: center; width: 52px;">`,@@ -260,7 +264,7 @@ const applyLegacyWeChatStyles = (`<span data-ee-publish-chrome="true" style="display: inline-block; width: 1px; height: 36px; background: #e5e7eb; vertical-align: middle; margin: 0 16px;"><span leaf=""><br></span></span>`,`<section data-ee-publish-chrome="true" style="display: inline-block; vertical-align: middle; max-width: calc(100% - 86px);">`,`<p data-ee-publish-chrome="true" style="margin: 0; font-size: 17px; font-weight: 900; color: #111827; letter-spacing: 0.3px; line-height: 1.3;">${titleHtml}</p>`,- `<p data-ee-publish-chrome="true" style="margin: 3px 0 0; font-size: 11px; font-weight: 400; color: #9ca3af; letter-spacing: 0.4px; line-height: 1.3;">${subLabel}</p>`,+ `<p data-ee-publish-chrome="true" style="margin: 3px 0 0; font-size: 11px; font-weight: 600; color: #9ca3af; letter-spacing: 1px; line-height: 1.3;">${subLabel}</p>`,`</section>`,].join("");});@@ -1257,6 +1261,9 @@ export const readEditorCopyContext = (from?: HTMLElement | null) => {headingStyle: parseNoteProseHeadingStyle(container?.dataset.noteHeadingStyle) ?? storedStyle.headingStyle,quoteStyle: parseNoteProseQuoteStyle(container?.dataset.noteQuoteStyle) ?? storedStyle.quoteStyle,emphasisStyle: parseNoteProseEmphasisStyle(container?.dataset.noteEmphasisStyle) ?? storedStyle.emphasisStyle,+ showMagazineCover: container?.dataset.noteMagazineCover !== undefined+ ? container.dataset.noteMagazineCover === "true"+ : storedStyle.showMagazineCover,};return {fontSize,@@ -1277,7 +1284,7 @@ export const preparePublishArticle = (root.innerHTML = html;flattenDetailsForLinearHtml(root);const context = readEditorCopyContext(from);- if (context.proseStyle.headingStyle === "numbered" && context.noteTitle && !root.querySelector("h1")) {+ if (context.proseStyle.showMagazineCover && context.noteTitle && !root.querySelector("h1")) {const coverH1 = document.createElement("h1");coverH1.textContent = context.noteTitle;root.insertBefore(coverH1, root.firstChild);diff --git a/apps/web/src/styles/note-prose-styles.css b/apps/web/src/styles/note-prose-styles.cssindex 77b587ed..69ae1f48 100644--- a/apps/web/src/styles/note-prose-styles.css+++ b/apps/web/src/styles/note-prose-styles.css@@ -163,20 +163,20 @@.edgeever-editor[data-note-heading-style="numbered"] .ProseMirror h2::after,.edgeever-editor[data-note-heading-style="numbered"] .markdown-content h2::after {- content: "SECTION " counter(note-prose-h2, decimal-leading-zero) " · 章节核心脉络";+ content: "SECTION " counter(note-prose-h2, decimal-leading-zero);display: block;margin-top: 3px;font-size: 11px;- font-weight: 400;+ font-weight: 600;color: #9ca3af;- letter-spacing: 0.4px;+ letter-spacing: 1px;line-height: 1.3;pointer-events: none;}.edgeever-editor[data-note-heading-style="numbered"] .ProseMirror h2:last-of-type::after,.edgeever-editor[data-note-heading-style="numbered"] .markdown-content h2:last-of-type::after {- content: "SUMMARY · 核心总结与延伸";+ content: "SUMMARY";}/* H3: Green pill badge with solid dot */diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 999c3428..51154ae0 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -1208,6 +1208,8 @@ export const enUS = {default: "Default",marker: "Marker underline",},+ editorBodyMagazineCoverTitle: "Magazine cover & outline",+ editorBodyMagazineCoverDescription: "Display a magazine-style breaking cover card and section outline cards at the top",editorBodyCssTitle: "Custom CSS",editorBodyCssDescription: "One stylesheet. Light rules set spacing and color, and the following :root.dark rules only override color. Size and line height stay on the controls above.",editorBodyCssPreviewLabel: "Preview",diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex 2b6a8b48..61a06f81 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -1197,6 +1197,8 @@ export const ja = {default: "標準",marker: "蛍光アンダーライン",},+ editorBodyMagazineCoverTitle: "マガジンカバーと概要",+ editorBodyMagazineCoverDescription: "記事の先頭に雑誌風のカバーカードとセクション案内を表示します",editorBodyCssTitle: "カスタム CSS",editorBodyCssDescription: "スタイルは1つです。ライトで間隔と色を書き、直後の :root.dark は色だけを上書きします。文字サイズと行間はここでは指定しません。",editorBodyCssPreviewLabel: "プレビュー",diff --git a/packages/shared/src/i18n/pl.ts b/packages/shared/src/i18n/pl.tsindex 1c57b0ea..c2b3d454 100644--- a/packages/shared/src/i18n/pl.ts+++ b/packages/shared/src/i18n/pl.ts@@ -1197,6 +1197,8 @@ export const pl = {default: "Domyślny",marker: "Zakreślacz pod tekstem",},+ editorBodyMagazineCoverTitle: "Okładka i spis magazynu",+ editorBodyMagazineCoverDescription: "Pokaż u góry notatki kartę tytułową w stylu magazynu oraz kafelki sekcji",editorBodyCssTitle: "Własny CSS",editorBodyCssDescription: "Jeden arkusz stylów. Reguły jasne ustawiają odstępy i kolory, a następujące po nich reguły :root.dark nadpisują tylko kolory. Rozmiar i interlinia pozostają w ustawieniach powyżej.",editorBodyCssPreviewLabel: "Podgląd",diff --git a/packages/shared/src/i18n/ru.ts b/packages/shared/src/i18n/ru.tsindex 97b07a92..8dffaa48 100644--- a/packages/shared/src/i18n/ru.ts+++ b/packages/shared/src/i18n/ru.ts@@ -1208,6 +1208,8 @@ export const ru = {default: "По умолчанию",marker: "Маркерное подчёркивание",},+ editorBodyMagazineCoverTitle: "Обложка и навигация",+ editorBodyMagazineCoverDescription: "Отображать вверху статьи карточку-обложку в журнальном стиле и карточки разделов",editorBodyCssTitle: "Свой CSS",editorBodyCssDescription: "Для светлой и тёмной темы — свои правила. Размер и высота строки задаются элементами управления выше.",editorBodyCssPreviewLabel: "Просмотр",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 80c4e166..6bd56306 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -1208,6 +1208,8 @@ export const zhCN = {default: "默认",marker: "荧光底边",},+ editorBodyMagazineCoverTitle: "杂志封面与导览",+ editorBodyMagazineCoverDescription: "在长文顶部展示杂志风格破框封面卡片与分章节导览卡片",editorBodyCssTitle: "自定义 CSS",editorBodyCssDescription: "同一份样式。浅色写间距和颜色,紧随的 :root.dark 只覆盖颜色。字号和行高不写在这里。",editorBodyCssPreviewLabel: "预览",diff --git a/packages/shared/src/note-prose.ts b/packages/shared/src/note-prose.tsindex de57668f..ceaa8adc 100644--- a/packages/shared/src/note-prose.ts+++ b/packages/shared/src/note-prose.ts@@ -50,6 +50,7 @@ export type NoteProseStylePreferences = {headingStyle: NoteProseHeadingStyle;quoteStyle: NoteProseQuoteStyle;emphasisStyle: NoteProseEmphasisStyle;+ showMagazineCover: boolean;};export const MAX_NOTE_PROSE_CSS_BYTES = 8 * 1024;