Skip to content

fix(markdown): disable auto links when converting to markdown #7

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

icelam
Copy link
Owner

@icelam icelam commented Apr 7, 2025

This fixes issues which causes extra < and > wrapped around hyperlink with contents matches its href.

Description

Disable auto links in markdownify, which according to the documentation, it handles a tag which its contents match its href specially by default.

For example <a href="https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/" target="_blank">https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/</a> was converted to <https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/>, which results in extra < and > found around hyperlink described in #5.

Fix #5.

How has this been tested?

Mock API response and send sample message using Telegram bot.

Types of changes

  • New feature - feat
  • Bug fix - fix
  • Refactor - refactor
  • Test cases - test
  • Other(s):

Remarks

N/A

@icelam icelam closed this Apr 7, 2025
@icelam icelam reopened this Apr 7, 2025
This fixes issues which causes extra < and > wrapped around hyperlink with contents matches its href.
@icelam icelam force-pushed the disable-auto-links branch from 55742b8 to 70029d3 Compare April 7, 2025 09:21
@icelam icelam merged commit cbd463a into develop Apr 7, 2025
2 checks passed
@icelam icelam deleted the disable-auto-links branch April 7, 2025 09:26
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.

Extra < and > wrapped around hyperlink
1 participant