Skip to content

fix(docs): use __WT_QUOT__ placeholder in tips-patterns terminal blocks - #2496

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-2495
Apr 30, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-2495

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Problem

Hand-written terminal(cmd=...) shortcodes in docs/content/tips-patterns.md used " HTML entities to embed double quotes in command examples. The terminal shortcode template at docs/templates/shortcodes/terminal.html only substitutes the __WT_QUOT__ placeholder back to " — " passes through Tera and Syntect untouched and renders literally on worktrunk.dev (visible as " text in the screenshot from #2495, e.g. wt config state marker set "🚧").

The __WT_QUOT__ placeholder convention was introduced in #1792 to fix double-encoding of " by Syntect; four pre-existing shortcodes in tips-patterns.md weren't migrated at the time.

Solution

Replace " with __WT_QUOT__ in all four affected terminal(cmd=...) shortcodes (lines 173, 268, 377, 383).

Add a regression test (test_terminal_cmd_uses_wt_quot_placeholder) that scans docs/content/*.md for " inside terminal(cmd=...) and fails with file:line evidence — preventing the same drift from recurring.

Testing

  • test_terminal_cmd_uses_wt_quot_placeholder failed on the four offending lines before the fix; passes after.
  • test_docs_are_in_sync auto-regenerated skills/worktrunk/reference/tips-patterns.md, where the same lines now show clean " instead of ".
  • All 13 readme_sync tests pass.

Closes #2495 — automated triage

…tterns

Hand-written `terminal(cmd=...)` shortcodes used `"` HTML entities for
embedded double quotes, but the terminal template only substitutes the
`__WT_QUOT__` placeholder — `"` passed through Tera and Syntect
untouched and rendered literally on worktrunk.dev.

Closes #2495

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 735756a into main Apr 30, 2026
37 of 38 checks passed
@max-sixty
max-sixty deleted the fix/issue-2495 branch April 30, 2026 08:26
worktrunk-bot added a commit to alvistar/worktrunk that referenced this pull request May 2, 2026
Aligns with main's max-sixty#2496 fix — `&quot;` inside `terminal(cmd=...)`
shortcodes renders literally on the docs site. The new
test_terminal_cmd_uses_wt_quot_placeholder check on main flagged the
cmux line after the merge with main pulled the test in.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
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.

quot issue in docs

2 participants