Skip to content

fix(ansi): rendering for HTML <img> tags#546

Open
Zvorky wants to merge 2 commits intocharmbracelet:mainfrom
Zvorky:fix/html-img-rendering
Open

fix(ansi): rendering for HTML <img> tags#546
Zvorky wants to merge 2 commits intocharmbracelet:mainfrom
Zvorky:fix/html-img-rendering

Conversation

@Zvorky
Copy link
Copy Markdown

@Zvorky Zvorky commented Apr 25, 2026

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

Parse <img src alt> in KindHTMLBlock and KindRawHTML nodes and route
them through ImageElement, matching the behaviour of Markdown ![alt](src).
Code blocks containing <img> are unaffected.

I also added an automated test in tests/ and examples in styles/examples/ in a commit prior to the fix for easier reproduction.

Zvorky added 2 commits April 25, 2026 15:13
Parse <img src alt> in KindHTMLBlock and KindRawHTML nodes and route
them through ImageElement, matching the behaviour of Markdown ![alt](src).
Code blocks containing <img> are unaffected.
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