René's URL Explorer Experiment


Title: feat: markdown 表格闭合边框渲染 + CJK/emoji 宽度适配 by dengmik-commits · Pull Request #115 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat: markdown 表格闭合边框渲染 + CJK/emoji 宽度适配 by dengmik-commits · Pull Request #115 · lessweb/deepcode-cli

X Title: feat: markdown 表格闭合边框渲染 + CJK/emoji 宽度适配 by dengmik-commits · Pull Request #115 · lessweb/deepcode-cli

Description: 概述 当前 deepcode-cli 的 markdown 表格仅原样输出 | col1 | col2 | 分隔符,排版简陋、宽度溢出时自动被 Ink 断行导致错乱。本次改动增加了闭合边框表格渲染、CJK 宽字符和 emoji 视觉宽度计算、单元格内自动换行,以及表格与普通文本分离渲染。 效果 变更 src/ui/components/MessageView/markdown.ts 新增 visualWidth(text) — 按终端列宽计算字符视觉宽度(CJK 字符、全角、emoji = 2 列,ASCII = 1 列) 新增 splitTableBlocks(text) — 从文本中检测和解析 markdown 表格(| col | col | + ---|---) 新增 renderTableBorder(rows, maxWidth) — 渲染闭合边框表格: 基于视觉宽度的列宽计算 列宽分配:窄列(#、状态、评论、日期)优先压缩,内容列保有最少 12 字符 单元格内逐字符自动换行,满格时在最后一个空格处截断 新增 renderMarkdownSegments(text, maxWidth) — 将文本拆分为 text/table/code 分段 renderMarkdown() 委托给 renderMarkdownSegments()(向后兼容) src/ui/components/MessageView/index.tsx 内容渲染改用 renderMarkdownSegments() 返回的分段数组 表格 用 渲染,彻底杜绝 Ink 在单元格空格处断行 普通文本 用 默认 wrap,保持正常折行 src/ui/index.ts 导出 renderMarkdownSegments 验证 npm run typecheck # ✅ 零错误 npm run bundle # ✅ dist/cli.js

Open Graph Description: 概述 当前 deepcode-cli 的 markdown 表格仅原样输出 | col1 | col2 | 分隔符,排版简陋、宽度溢出时自动被 Ink 断行导致错乱。本次改动增加了闭合边框表格渲染、CJK 宽字符和 emoji 视觉宽度计算、单元格内自动换行,以及表格与普通文本分离渲染。 效果 变更 src/ui/components/MessageView/markdown.ts 新增...

X Description: 概述 当前 deepcode-cli 的 markdown 表格仅原样输出 | col1 | col2 | 分隔符,排版简陋、宽度溢出时自动被 Ink 断行导致错乱。本次改动增加了闭合边框表格渲染、CJK 宽字符和 emoji 视觉宽度计算、单元格内自动换行,以及表格与普通文本分离渲染。 效果 变更 src/ui/components/MessageView/markdown.ts 新增...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/115

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:92d11ebb-32af-af5b-f8d4-43cd4d0095f1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id955A:320E86:120C77:1A2121:6A4DFC51
html-safe-nonce3318377679ed707f9b2a4480c1271e1f81d7e561acc6a5cdf757f88ed7bb2c9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTVBOjMyMEU4NjoxMjBDNzc6MUEyMTIxOjZBNERGQzUxIiwidmlzaXRvcl9pZCI6IjE4MzgzMzEyMTIzMjc2ODExMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3bd76944ae066e193297adc52c7067c154e0c913450ee6e93c71be4be0c7a8cb
hovercard-subject-tagpull_request:3734807623
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/115/files
twitter:imagehttps://avatars.githubusercontent.com/u/270912164?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/270912164?s=400&v=4
og:image:alt概述 当前 deepcode-cli 的 markdown 表格仅原样输出 | col1 | col2 | 分隔符,排版简陋、宽度溢出时自动被 Ink 断行导致错乱。本次改动增加了闭合边框表格渲染、CJK 宽字符和 emoji 视觉宽度计算、单元格内自动换行,以及表格与普通文本分离渲染。 效果 变更 src/ui/components/MessageView/markdown.ts 新增...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4314b1df11fa8a565684f3a72dc971e3785da365
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/115/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F115%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F115%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/115/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/115/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/115/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 43 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
dengmik-commits:feat/table-renderhttps://github.com/dengmik-commits/deepcode-cli/tree/feat/table-render
Conversation 3 https://github.com/lessweb/deepcode-cli/pull/115
Commits 4 https://github.com/lessweb/deepcode-cli/pull/115/commits
Checks 9 https://github.com/lessweb/deepcode-cli/pull/115/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/115/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
feat: markdown 表格闭合边框渲染 + CJK/emoji 宽度适配 https://github.com/lessweb/deepcode-cli/pull/115/files#top
Show all changes 4 commits https://github.com/lessweb/deepcode-cli/pull/115/files
928551e feat: add closed-border markdown table rendering with CJK/emoji support dengmik-commits May 23, 2026 https://github.com/lessweb/deepcode-cli/pull/115/commits/928551e127b0df5f77b44aaee030863f838406e0
8096709 add screenshot dengmik-commits May 23, 2026 https://github.com/lessweb/deepcode-cli/pull/115/commits/809670952601f7dedf738008190b9d8d84054491
7c95312 fix: improve table column width allocation — use natural widths and g… dengmik-commits May 25, 2026 https://github.com/lessweb/deepcode-cli/pull/115/commits/7c95312f68623c9da6ce1c865f2dd996d16b2cf5
679eb00 feat: enhance markdown table rendering with CJK support and improved … qorzj May 25, 2026 https://github.com/lessweb/deepcode-cli/pull/115/commits/679eb003515d15a9bf2c6f3d147650cd5d768fb9
Clear filters https://github.com/lessweb/deepcode-cli/pull/115/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
Screenshot_2026-05-23_195028.png https://github.com/lessweb/deepcode-cli/pull/115/files#diff-3340b5603fd86f891dccdfadc24b0af3e3a0df5997756ca5c97449dca71b23b9
markdown.test.ts https://github.com/lessweb/deepcode-cli/pull/115/files#diff-2b6ddf724a1805991536f3d457401f27b2a7726735a0941ed38623a864bfb3fb
index.tsx https://github.com/lessweb/deepcode-cli/pull/115/files#diff-fc070bd493edb19b0d2fcf473fd0b4a5fbb363c2aa90a9d6c55c499368c87459
markdown.ts https://github.com/lessweb/deepcode-cli/pull/115/files#diff-ce70d34d88d5241f79c189fff96dffe61b561e807df2fc71d4aed35ce9d75c7d
index.ts https://github.com/lessweb/deepcode-cli/pull/115/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
Screenshot_2026-05-23_195028.pnghttps://github.com/lessweb/deepcode-cli/pull/115/files#diff-3340b5603fd86f891dccdfadc24b0af3e3a0df5997756ca5c97449dca71b23b9
View file https://github.com/dengmik-commits/deepcode-cli/blob/679eb003515d15a9bf2c6f3d147650cd5d768fb9/Screenshot_2026-05-23_195028.png
Open in desktop https://desktop.github.com
Reload?https://github.com/lessweb/deepcode-cli/pull/115/files
src/tests/markdown.test.tshttps://github.com/lessweb/deepcode-cli/pull/115/files#diff-2b6ddf724a1805991536f3d457401f27b2a7726735a0941ed38623a864bfb3fb
View file https://github.com/dengmik-commits/deepcode-cli/blob/679eb003515d15a9bf2c6f3d147650cd5d768fb9/src/tests/markdown.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/115/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/115/files#diff-2b6ddf724a1805991536f3d457401f27b2a7726735a0941ed38623a864bfb3fb
https://github.com/lessweb/deepcode-cli/pull/115/files#diff-2b6ddf724a1805991536f3d457401f27b2a7726735a0941ed38623a864bfb3fb
src/ui/components/MessageView/index.tsxhttps://github.com/lessweb/deepcode-cli/pull/115/files#diff-fc070bd493edb19b0d2fcf473fd0b4a5fbb363c2aa90a9d6c55c499368c87459
View file https://github.com/dengmik-commits/deepcode-cli/blob/679eb003515d15a9bf2c6f3d147650cd5d768fb9/src/ui/components/MessageView/index.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/115/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/115/files#diff-fc070bd493edb19b0d2fcf473fd0b4a5fbb363c2aa90a9d6c55c499368c87459
https://github.com/lessweb/deepcode-cli/pull/115/files#diff-fc070bd493edb19b0d2fcf473fd0b4a5fbb363c2aa90a9d6c55c499368c87459
https://github.com/lessweb/deepcode-cli/pull/115/files#diff-fc070bd493edb19b0d2fcf473fd0b4a5fbb363c2aa90a9d6c55c499368c87459
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/115/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.