Skip to content

feat: enhance HTML export with syntax highlighting, diff view, and An…#46

Open
Harryoung wants to merge 2 commits into
ZeroSumQuant:mainfrom
Harryoung:main
Open

feat: enhance HTML export with syntax highlighting, diff view, and An…#46
Harryoung wants to merge 2 commits into
ZeroSumQuant:mainfrom
Harryoung:main

Conversation

@Harryoung
Copy link
Copy Markdown

…thropic brand styling

  • Fix Unicode encoding: use ensure_ascii=False in json.dumps so Chinese text renders correctly instead of showing escape sequences
  • Extract tool_use blocks from assistant messages as separate structured entries (previously they were flattened into plain text strings because the JSONL stores tool calls inside assistant content arrays, not as standalone entries)
  • Extract tool_result from user messages in detailed mode
  • Write tool: render file path header + syntax-highlighted code block using highlight.js with language detection from file extension
  • Edit tool: render old_string/new_string as GitHub-style diff view with red (removed) and green (added) lines
  • Read/Bash/Grep/Glob tools: compact parameter display
  • Apply Anthropic brand design system: dark header (#141413), warm background (#faf9f5), Poppins headings, Lora body text, brand accent colors for message borders (blue=Human, green=Claude, orange=Tool)

Harryoung and others added 2 commits February 22, 2026 22:55
…thropic brand styling

- Fix Unicode encoding: use ensure_ascii=False in json.dumps so Chinese
  text renders correctly instead of showing escape sequences
- Extract tool_use blocks from assistant messages as separate structured
  entries (previously they were flattened into plain text strings because
  the JSONL stores tool calls inside assistant content arrays, not as
  standalone entries)
- Extract tool_result from user messages in detailed mode
- Write tool: render file path header + syntax-highlighted code block
  using highlight.js with language detection from file extension
- Edit tool: render old_string/new_string as GitHub-style diff view
  with red (removed) and green (added) lines
- Read/Bash/Grep/Glob tools: compact parameter display
- Apply Anthropic brand design system: dark header (#141413), warm
  background (#faf9f5), Poppins headings, Lora body text, brand accent
  colors for message borders (blue=Human, green=Claude, orange=Tool)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Tool results >15 lines auto-collapse with click-to-expand
- Write tool content >30 lines auto-collapse
- Task tool prompts >10 lines auto-collapse
- Generic tool params >20 lines auto-collapse
- Assistant/user messages rendered as markdown via marked.js
- Added CSS for details/summary, markdown headings, lists, tables, blockquotes

Co-Authored-By: Claude Opus 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