Skip to content

Conversation

chrispy-snps
Copy link
Collaborator

@chrispy-snps chrispy-snps commented Dec 29, 2024

Fixes #164.

The convert_a() function is modified to return only the contents of <a> in code spans and code blocks, effectively disabling link construction in these contexts.

Unit tests are added to cover this case.

@AlexVonB AlexVonB self-assigned this Jan 2, 2025
@AlexVonB AlexVonB self-requested a review January 2, 2025 15:54
@chrispy-snps chrispy-snps merged commit 5bc3059 into matthewwithanm:develop Jan 19, 2025
1 check passed
@chrispy-snps chrispy-snps deleted the chrispy/fix-a-in-code branch February 17, 2025 13:45
Wuhall pushed a commit to Wuhall/python-markdownify that referenced this pull request May 21, 2025
…-in-code

do not construct Markdown links in code spans and code blocks
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.

<a> tag links should not be constructed inside preformatted tags

2 participants