From 5061c4d19dadc8a2f02a693e3cf99fe10bd90d14 Mon Sep 17 00:00:00 2001 From: hypercross Date: Tue, 8 Sep 2026 20:59:30 +0800 Subject: [PATCH] docs: remove remaining yaml/tag legacy references --- src/components/md-deck/hooks/deckStore.ts | 2 +- src/components/md-deck/index.tsx | 4 ++-- src/doc-entries/md-deck.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/md-deck/hooks/deckStore.ts b/src/components/md-deck/hooks/deckStore.ts index 5456e8e..cd37559 100644 --- a/src/components/md-deck/hooks/deckStore.ts +++ b/src/components/md-deck/hooks/deckStore.ts @@ -42,7 +42,7 @@ export interface DeckState { cornerRadius: number; shape: CardShape; fixed: boolean; - /** True when the deck was configured via a yaml/tag codeblock (data-config). */ + /** True when the deck was configured via a yaml role=tag codeblock (data-config). */ isYamlBlock: boolean; src: string; rawSrc: string; diff --git a/src/components/md-deck/index.tsx b/src/components/md-deck/index.tsx index 98cd5ff..08c9921 100644 --- a/src/components/md-deck/index.tsx +++ b/src/components/md-deck/index.tsx @@ -69,7 +69,7 @@ customElement( const deckId = `deck-${uuidv4()}`; registerDeck(deckId, store, resolvedSrc, csvPath); - // 读取 data-config(yaml/tag 代码块方式):结构化配置优先 + // 读取 data-config(yaml role=tag 代码块方式):结构化配置优先 let config: | ReturnType | undefined; @@ -77,7 +77,7 @@ customElement( if (dataConfigAttr) { try { config = normalizeDeckConfig(JSON.parse(dataConfigAttr)); - // 记录来源,复制代码时输出 yaml/tag 代码块 + // 记录来源,复制代码时输出 yaml role=tag 代码块 store.actions.setIsYamlBlock(true); } catch (e) { console.error("Invalid data-config on md-deck:", e); diff --git a/src/doc-entries/md-deck.md b/src/doc-entries/md-deck.md index 1541d9b..b083bd0 100644 --- a/src/doc-entries/md-deck.md +++ b/src/doc-entries/md-deck.md @@ -40,7 +40,7 @@ data-config: ``` ```` -`pos` 为网格位置 `x1,y1-x2,y2`(1-based,与紧凑 layers 字符串同格式)。也支持旧写法 ```yaml/tag。 +`pos` 为网格位置 `x1,y1-x2,y2`(1-based,与紧凑 layers 字符串同格式)。 ## 图层格式