-
Notifications
You must be signed in to change notification settings - Fork 599
feat(docs): add --code flag to docs format for monospace + grey background #685
Copy link
Copy link
Closed
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Motivation
gog already implements "code-styled run" — inline backticks in markdown render as Courier New + grey background (
internal/cmd/docs_formatter.go), andgog docs sed 's/X/{#}X/'does the same (internal/cmd/docs_sed_brace_format.go). The same single semantic unit is not reachable fromgog docs format.Repro
Proposed surface
Behaviour: sets
weightedFontFamily=Courier New(matching the existing markdown converter) plus the existing grey background in one UpdateTextStyle request. Mutually exclusive with--font-familyand--bg-colorto avoid surprise.Acceptance criteria
--codeproduces the same visual output as a markdown backtick run pushed viagog docs write --markdown.gog docs sed '{#}'emits today.References