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

Fix img alt text being processed as markdown (#594) #595

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

Crozzers
Copy link
Contributor

This PR fixes #594 by preventing image alt texts from being processed as markdown.

I've added a new helper method called _hash_span which hashes the text and adds it to the html_spans table. I also made sure that _unhash_html_spans is always called towards the end of convert, so that these hashes are undone.

@nicholasserra
Copy link
Collaborator

LGTM thanks!

@nicholasserra nicholasserra merged commit 1e0fbf2 into trentm:master Aug 7, 2024
15 checks passed
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.

Markdown rendering in image descriptions
2 participants