[Bug]: Markdown generation discards content inside Tabs components
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 75/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Calme
- Stack technique
- markdown
- Domaine
- documentation
Piste de recherche
Commencez par src/pages/[...path].md.ts afin de suivre la route Markdown publique jusqu’à transformPageToMarkdown(), puis examinez src/lib/markdown/transformMarkdown.ts, en particulier la règle de nettoyage autour des lignes 211–224 et les handlers de composants existants. Préservez séquentiellement chaque libellé et chaque panneau de Tabs dans le Markdown généré, traitez les composants imbriqués comme CodeSample et ajoutez des tests confirmant que tout le contenu des onglets reste présent.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- MDX
- Étoiles
- 531
- Forks
- 481
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 103
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de smartcontractkit/documentation
-
[Bug]: broken link in onchain-write/submitting-reports-onchainPeut-être pris @Jludvim l’a pris il y a 47 jours. Ouvertebug triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
smartcontractkit/documentation#4154 ·
Les mainteneurs répondent en général sous 1 jour
-
[Enhancement]: <Chainlink local documentation issue>Peut-être pris @ChrisWozniak l’a pris il y a 47 jours. Ouverteenhancement triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
smartcontractkit/documentation#4114 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: <Possible to use multiple secret files from v2.4.0 onwards>Peut-être pris @ChrisWozniak l’a pris il y a 47 jours. Ouvertebug triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
smartcontractkit/documentation#1505 ·
Les mainteneurs répondent en général sous 1 jour
-
GHA-data-validate-urls: Invalid URLs DetectedPeut-être pris @khadni l’a pris il y a 2 jours. Ouvertebug gh-action-data
smartcontractkit/documentation#4349 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
GHA-data-validate-urls: Invalid URLs DetectedPeut-être pris @khadni l’a pris il y a 9 jours. Ouvertebug gh-action-data
smartcontractkit/documentation#4323 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de smartcontractkit/documentation
Issues similaires
-
chore(worker): five module header comments describe the code from before later issues changed itOuvertearea:dev U2-later
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
bentleypark/aiwatch#1824 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
beginner-friendly category:sarif community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
Berserk-hub150/skillhawk#244 · 1 commentaire ·
Les mainteneurs répondent en général sous 8 jours
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Judgment-Pack/judgment-pack-spec#275 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG] docs: tutorial says a scenario passes "when all pass conditions are met"; the runner passes on the first one (and usage.md shows a result message the runner never writes)Peut-être pris @hakuturu583 l’a pris aujourd’hui. Ouvertebug documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
autowarefoundation/autoware_carla_scenario#665 ·
Les mainteneurs répondent en général sous 1 jour