hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

hyperframes docs prints literal ** bold markers

Open jrusso1020 opened this issue 4 weeks ago • 2 comments

hyperframes docs compositions prints literal ** markers, for example **data-composition-variables** (source: packages/cli/src/docs/compositions.md). The terminal markdown renderer (renderMarkdown in packages/cli/src/commands/docs.ts, around lines 75-104) handles headings, bullets and backticks, but not bold.

Scope

  • Render **bold** as bold text in a TTY, or strip the markers when output isn't a TTY, matching how the renderer treats other markup.

Files: packages/cli/src/commands/docs.ts, packages/cli/src/commands/docs.test.ts

Done when: a test shows rendered output for a line with **bold** contains no **.

Mentor: @jrusso1020. Comment here before you start so we can avoid duplicate PRs.

jrusso1020 avatar Nov 06 '26 00:11 jrusso1020

I'd like to take this. Approach: make the markdown renderer in docs.ts handle **bold** spans the same way it handles backtick spans, through the existing color helper (so a TTY gets bold text and a non-TTY gets plain text with the markers removed), and expose the line rendering so docs.test.ts can assert a line with **bold** renders without **.

RClaudiuM avatar Nov 06 '26 18:11 RClaudiuM

Picking this up — renderMarkdown grows an inline pass that renders **bold** spans via c.bold (which already no-ops to plain text off-TTY, so markers strip themselves), applied outside code spans so backtick content stays literal. Test will show a rendered bold line contains no **.

rezamuliawijaya avatar Nov 06 '26 18:11 rezamuliawijaya