Repository navigation
fix(docs): use __WT_QUOT__ placeholder in tips-patterns terminal blocks - #2496
Merged
Merged
Conversation
…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]>
Closed
worktrunk-bot
added a commit
to alvistar/worktrunk
that referenced
this pull request
May 2, 2026
Aligns with main's max-sixty#2496 fix — `"` 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]>
1 of 2 tasks
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.
Problem
Hand-written
terminal(cmd=...)shortcodes indocs/content/tips-patterns.mdused"HTML entities to embed double quotes in command examples. The terminal shortcode template atdocs/templates/shortcodes/terminal.htmlonly 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 intips-patterns.mdweren't migrated at the time.Solution
Replace
"with__WT_QUOT__in all four affectedterminal(cmd=...)shortcodes (lines 173, 268, 377, 383).Add a regression test (
test_terminal_cmd_uses_wt_quot_placeholder) that scansdocs/content/*.mdfor"insideterminal(cmd=...)and fails with file:line evidence — preventing the same drift from recurring.Testing
test_terminal_cmd_uses_wt_quot_placeholderfailed on the four offending lines before the fix; passes after.test_docs_are_in_syncauto-regeneratedskills/worktrunk/reference/tips-patterns.md, where the same lines now show clean"instead of".readme_synctests pass.Closes #2495 — automated triage