[Bug]: Markdown generation discards content inside Tabs components
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- markdown
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với src/pages/[...path].md.ts để lần theo route Markdown công khai đến transformPageToMarkdown(), sau đó kiểm tra src/lib/markdown/transformMarkdown.ts, đặc biệt là quy tắc dọn dẹp quanh các dòng 211–224 và các component handler hiện có. Giữ nguyên tuần tự từng nhãn và panel của Tabs trong Markdown được tạo ra, xử lý các component lồng nhau như CodeSample và thêm các test xác nhận rằng toàn bộ nội dung của tất cả các tab vẫn còn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
The generated .md pages omit content placed inside interactive Tabs components, creating content-parity differences between the rendered documentation and the agent-facing Markdown representation.
After previously documenting the affected pages in an agent experience audit, I encountered a similar parity issue in another documentation project. Investigating that project revealed a serialization problem, so I examined Chainlink's Markdown-generation pipeline for a comparable cause.
Chainlink's public .md route is implemented in:
The route reads the source MDX and passes it to transformPageToMarkdown(). The conversion logic is implemented in:
src/lib/markdown/transformMarkdown.ts
The transformer provides handlers for selected MDX components, including Aside, CodeSample, and CcipCommon. However, it does not provide a serialization handler for Tabs, TabsContent, or their slotted Fragment children.
The cleanup rule subsequently removes unsupported MDX flow components:
[transformMarkdown.ts, lines 211–224]
(https://github.com/smartcontractkit/documentation/blob/main/src/lib/markdown/transformMarkdown.ts#L211-L224)
When a Tabs component is removed, its Fragment panels and their commands, tables, code samples, warnings, and expected outputs are removed with it.
For example, this source structure:
<Tabs client:visible>
<Fragment slot="tab.1">Starter kit</Fragment>
<Fragment slot="tab.2">Manual</Fragment>
<Fragment slot="panel.1">
Starter-kit instructions
</Fragment>
<Fragment slot="panel.2">
Manual instructions
</Fragment>
</Tabs>
produces a Markdown representation containing neither implementation path.
To Reproduce
-
Open the rendered LockRelease Token Pool documentation page:
https://docs.chain.link/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool -
Navigate to Step 1: Deploy the LockRelease Token Pool.
-
Confirm that the page contains Starter kit and Manual tabs with deployment instructions.
-
Open the corresponding Markdown page:
https://docs.chain.link/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool.md -
Locate the same Step 1 section.
-
Observe that the Markdown moves from the introductory paragraph directly to Transfer-fee fields, omitting both tab panels.
-
Inspect the source MDX:
https://github.com/smartcontractkit/documentation/blob/main/src/content/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool.mdx -
Inspect the unsupported-component cleanup rule:
https://github.com/smartcontractkit/documentation/blob/main/src/lib/markdown/transformMarkdown.ts#L211-L224
URLs
Representative page:
- Rendered page:
https://docs.chain.link/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool - Markdown page:
https://docs.chain.link/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool.md - Source MDX:
https://github.com/smartcontractkit/documentation/blob/main/src/content/ccip/tutorials/canton/cross-chain-tokens/lock-release-token-pool.mdx
Expected behavior
The Markdown transformer should preserve every tab label and its corresponding panel content.
Because Markdown is not interactive, each tab could be serialized sequentially as a labeled section. Nested components, such as CodeSample, should then be processed by their existing handlers.
No tab panel should be silently discarded.
Additional context
All affected pages are documented here: https://github.com/manueldezman/chainlink-documentation-audit.
I would be happy to submit a focused PR that adds serialization support for Tabs, TabsContent, and their Fragment panels, along with automated tests confirming that every tab label and panel remains present in the generated Markdown.
- Ngôn ngữ chính
- MDX
- Star
- 527
- Fork
- 480
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 111
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của smartcontractkit/documentation
-
[Bug]: broken link in onchain-write/submitting-reports-onchainCó thể đã có người làm @Jludvim đã nhận 33 ngày trước. Đang mởbug triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
smartcontractkit/documentation#4154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Enhancement]: <Chainlink local documentation issue>Có thể đã có người làm @ChrisWozniak đã nhận 33 ngày trước. Đang mởenhancement triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
smartcontractkit/documentation#4114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: <Possible to use multiple secret files from v2.4.0 onwards>Có thể đã có người làm @ChrisWozniak đã nhận 33 ngày trước. Đang mởbug triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
smartcontractkit/documentation#1505 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GHA-data-validate-urls: Invalid URLs DetectedCó thể đã có người làm @khadni đã nhận hôm nay. Đang mởbug gh-action-data
smartcontractkit/documentation#4309 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GHA-data-validate-urls: Invalid URLs DetectedCó thể đã có người làm @khadni đã nhận 2 ngày trước. Đang mởbug gh-action-data
smartcontractkit/documentation#4293 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của smartcontractkit/documentation
Issue tương tự
-
task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
danparshall/claude_researcher#87 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore: update release scheduleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
uniswap-python/uniswap-python#487 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
area: server enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
scs0209/laya-guard#52 ·
Maintainer thường phản hồi trong vòng 1 ngày