Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎆 Prevent html outputs that translate to empty images #1739

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

fwkoch
Copy link
Collaborator

@fwkoch fwkoch commented Jan 9, 2025

If output has html media type that includes image node with no url, that output is entirely ignored. This approach is a little heavy-handed, but likely if we encounter an image with no url, the html is too complex to convert to markdown at all.

(This is a small part of the changes originally in #1701)

Copy link
Member

@rowanc1 rowanc1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into this in the QuantEcon books, thanks @fwkoch.

@rowanc1 rowanc1 merged commit 93af5a1 into main Jan 9, 2025
7 checks passed
@rowanc1 rowanc1 deleted the html/empty-images branch January 9, 2025 17:42
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.

2 participants