Skip to content

fix: use quadruple backticks for CLAUDE.md template code blocks#4

Open
czhao-wings wants to merge 1 commit intokeskinonur:mainfrom
czhao-wings:fix/markdown-format
Open

fix: use quadruple backticks for CLAUDE.md template code blocks#4
czhao-wings wants to merge 1 commit intokeskinonur:mainfrom
czhao-wings:fix/markdown-format

Conversation

@czhao-wings
Copy link
Copy Markdown

Summary

  • Outer code blocks used ```markdown fences, but the templates inside contain nested triple-backtick code blocks (Swift examples, directory trees)
  • The first inner ``` accidentally closes the outer block early, breaking the entire template rendering
  • Fix: wrap outer blocks in 4 backticks so inner triple-backtick fences don't interfere

Affected sections

  • Root CLAUDE.md template (lines 122 and 230)
  • Nested CLAUDE.md for Feature Directories (lines 236 and 268)

Test plan

  • Verify the CLAUDE.md template sections render correctly in GitHub's Markdown preview
  • Confirm nested Swift code blocks and directory trees appear inside the outer template block

🤖 Generated with Claude Code

Outer code blocks used triple backticks (```markdown), but nested
Swift/tree code blocks inside them also used triple backticks, causing
the first inner fence to close the outer block early and break rendering.

Affected sections: Root CLAUDE.md template (lines 122, 230) and
Nested CLAUDE.md template (lines 236, 268).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant