Skip to content

docs(common/general): convert multiline pre block to standard format in etcher template - #2044

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

docs(common/general): convert multiline pre block to standard format in etcher template#2044
tangzz-radxa wants to merge 2 commits into
radxa-docs:mainfrom
tangzz-radxa:docs/fix-common-general-etcher-pre-20260821

Conversation

@tangzz-radxa

Copy link
Copy Markdown
Contributor

Summary

Convert the multi-line <pre> block in the shared common/general/_etcher.mdx template to standard format, fixing an extra blank line rendered inside the code block on all pages using this template.

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

Converted to <pre>{...}</pre> template-literal form (JSX props preserved as ${props.*}) in both Chinese (docs/common/general/_etcher.mdx) and English (i18n/en/.../common/general/_etcher.mdx). No content changes.

Whitespace/markup-only change.

@tangzz-radxa
tangzz-radxa requested a review from a team as a code owner August 21, 2026 07:04
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