惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
爱范儿
爱范儿
罗磊的独立博客
美团技术团队
Jina AI
Jina AI
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
IT之家
IT之家
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: crystallize blockquote spacing · openclaw/openclaw@...
shakkernerd · 2026-05-13 · via Recent Commits to openclaw:main

@@ -93,7 +93,7 @@ describe("blockquote spacing", () => {

9393

const result = markdownToIR(input);

94949595

// Each nested level is a new paragraph

96-

expect(result.text).not.toContain("\n\n\n");

96+

expect(result.text).toBe("level 1\n\nlevel 2\n\nlevel 3");

9797

});

9898

});

9999

@@ -120,16 +120,14 @@ describe("blockquote spacing", () => {

120120

const result = markdownToIR(input);

121121122122

// Code blocks preserve their trailing newline

123-

expect(result.text.startsWith("quote\n\ncode")).toBe(true);

124-

expect(result.text).not.toContain("\n\n\n");

123+

expect(result.text).toBe("quote\n\ncode\n");

125124

});

126125127126

it("should have double newline between blockquote and horizontal rule", () => {

128127

const input = "> quote\n\n---\n\nparagraph";

129128

const result = markdownToIR(input);

130129131-

// HR just adds a newline in IR, but should not create triple newlines

132-

expect(result.text).not.toContain("\n\n\n");

130+

expect(result.text).toBe("quote\n\n───\n\nparagraph");

133131

});

134132

});

135133

@@ -140,8 +138,7 @@ describe("blockquote spacing", () => {

140138141139

// Multi-paragraph blockquote should have proper internal spacing

142140

// AND proper spacing with following content

143-

expect(result.text).toContain("first paragraph\n\nsecond paragraph");

144-

expect(result.text).not.toContain("\n\n\n");

141+

expect(result.text).toBe("first paragraph\n\nsecond paragraph\n\nfollowing paragraph");

145142

});

146143

});

147144

@@ -161,15 +158,14 @@ describe("blockquote spacing", () => {

161158

const input = ">\n\nparagraph";

162159

const result = markdownToIR(input);

163160164-

expect(result.text).not.toContain("\n\n\n");

161+

expect(result.text).toBe("paragraph");

165162

});

166163167164

it("should handle blockquote at end of document", () => {

168165

const input = "paragraph\n\n> quote";

169166

const result = markdownToIR(input);

170167171-

// No trailing triple newlines

172-

expect(result.text).not.toContain("\n\n\n");

168+

expect(result.text).toBe("paragraph\n\nquote");

173169

});

174170175171

it("should handle multiple blockquotes with paragraphs between", () => {

@@ -196,8 +192,7 @@ describe("comparison with other block elements (control group)", () => {

196192

const result = markdownToIR(input);

197193198194

// Lists already work correctly

199-

expect(result.text).toContain("• item 2\n\nparagraph");

200-

expect(result.text).not.toContain("\n\n\n");

195+

expect(result.text).toBe("• item 1\n• item 2\n\nparagraph");

201196

});

202197203198

it("heading followed by paragraph should have double newline", () => {