Skip to content

Conversation

@macota
Copy link

@macota macota commented Nov 14, 2025

Summary

The wrapInHtmlDocument function was creating a complete HTML document with a black background but no text styling. This resulted in black text on a black background when the output is viewed as a standalone HTML file, making it unreadable.

Changes

  • Added a <style> tag to the generated HTML document
  • Set text color to green (#0f0) for both body and pre elements
  • Added proper font-family, line-height, and padding to match the tool's styling
  • Replaced inline styles with a proper stylesheet for better maintainability

Testing

The fix ensures that when users copy the generated HTML and view it as a standalone file, the terminal output is displayed with visible green text on a black background, matching the tool's appearance in the preview.

🤖 Generated with Claude Code

The wrapInHtmlDocument function was creating a complete HTML document
with a black background but no text styling, resulting in black text on
black background when the output is viewed standalone. This commit adds
the necessary CSS to set text color to green (#0f0) and applies proper
font styling to match the tool's appearance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@macota
Copy link
Author

macota commented Nov 14, 2025

Hey Simon, went to use your terminal to html tool and got an issue with the html it created where it all just rendered as black

Self admittedly just dictated this to claude through wispr flow and it made this change and added the correct text styling

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