Skip to content

docs(common/dev): convert multiline pre blocks to standard code block format - #2043

Closed
tangzz-radxa wants to merge 2 commits into
radxa-docs:mainfrom
tangzz-radxa:docs/fix-common-dev-pre-20260821
Closed

docs(common/dev): convert multiline pre blocks to standard code block format#2043
tangzz-radxa wants to merge 2 commits into
radxa-docs:mainfrom
tangzz-radxa:docs/fix-common-dev-pre-20260821

Conversation

@tangzz-radxa

Copy link
Copy Markdown
Contributor

Summary

Convert multi-line <pre> code blocks in the shared common/dev/ templates (_erase-emmc.mdx, _erase-spi-emmc.mdx, _rkdeveloptoolV2.mdx, _rkdeveloptoolV3.mdx, _pico2-riscv32-toolchain.mdx) to standard code block format, fixing an extra blank line rendered inside code blocks on pages using these templates.

Root cause

Multi-line <pre> blocks in MDX are parsed into <pre><p>...</pre> (inner text wrapped in <p>), and the <p> default margin renders as a visible blank line inside the code block.

Change

  • Blocks containing links (<a href={props.loader}>) → mixed JSX template-literal form <pre>{...}<a ...>...</a>{...}</pre> so links and dynamic props still render.
  • Plain command blocks → standard ``` bash fence; removed <!-- prettier-ignore --> comments and `` tags.
  • Both Chinese (docs/common/dev/) and English (i18n/en/.../common/dev/) versions updated. No command/content changes.

Whitespace/markup-only change.

@tangzz-radxa
tangzz-radxa requested a review from a team as a code owner August 21, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants