feat: enhance HTML export with syntax highlighting, diff view, and An…#46
Open
Harryoung wants to merge 2 commits into
Open
feat: enhance HTML export with syntax highlighting, diff view, and An…#46Harryoung wants to merge 2 commits into
Harryoung wants to merge 2 commits into
Conversation
…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>
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.
…thropic brand styling