guilhermeprokisch / see

A cute cat(1) for the terminal with advanced code viewing, Markdown rendering, 🌳 tree-sitter syntax highlighting, images view and more.
MIT License
202 stars 2 forks source link

feat: add markdown html blocks rendering #23

Closed guilhermeprokisch closed 1 month ago

guilhermeprokisch commented 1 month ago

This PR introduces HTML to Markdown conversion functionality. The main changes include:

  1. Added a new configuration option convert_html to enable/disable HTML to Markdown conversion.
  2. Implemented HTML to Markdown conversion using the htmd crate.
  3. Updated the render_node function to handle HTML nodes and convert them to Markdown when enabled.
  4. Added error handling and debug logging for image rendering issues.
  5. Updated documentation to reflect the new --convert-html CLI option.
  6. Adjusted default image dimensions for better display.