[doc] zh release-3.1.2: dedent body so headings render#3767
Merged
Conversation
The zh release-3.1.2.md had every line below the first heading prefixed with two leading spaces (markdown indent), which made Docusaurus treat the `### Storage and Compression`, `## Optimizations`, `## Bug Fixes` and 13 other headings as plain text inside a fenced block instead of as proper section headings. The rendered page therefore showed only `## 新功能` and a long indented run of "text" beneath it. The translation itself was already complete and accurate — only the leading whitespace was wrong. Strip the two-space prefix from every line after the frontmatter so the existing translation renders as intended. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The zh `release-3.1.2.md` page had every line below the first heading prefixed with two leading spaces. In CommonMark/Docusaurus, that turns headings like `### Storage and Compression` / `## Optimizations` / `## Bug Fixes` (and 12 other section headings) into plain text inside an indented block rather than proper headings. The rendered page therefore showed only `## 新功能` followed by a long run of indented text — making the page look almost untranslated.
The translation itself was already complete and accurate; only the leading whitespace was wrong. This PR strips the two-space prefix from every line after the frontmatter so the existing translation renders as intended.
Before: 1 heading recognised by markdown.
After: all 15 headings recognised, matching the EN structure exactly:
Test plan