Skip to content

Add mdlink script to generate markdown links from URLs#114

Merged
thavelick merged 2 commits intomainfrom
add_mdlink_script
Feb 14, 2026
Merged

Add mdlink script to generate markdown links from URLs#114
thavelick merged 2 commits intomainfrom
add_mdlink_script

Conversation

@thavelick
Copy link
Owner

Summary

  • Adds bin/mdlink, a Python script that fetches a URL's <title> tag and outputs a markdown link [Title](url)
  • Uses stdlib only (urllib.request + html.parser), no external dependencies
  • Includes browser-like User-Agent header, timeout, bracket escaping, and error handling

Test plan

  • mdlink https://example.com[Example Domain](https://example.com)
  • mdlink with no args shows usage
  • mdlink -h shows help
  • make lint passes

🤖 Generated with Claude Code

thavelick and others added 2 commits February 12, 2026 11:00
Fetches a URL's <title> tag and outputs a markdown link [Title](url).
Uses stdlib only (urllib + html.parser), no external dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thavelick thavelick merged commit 03563cf into main Feb 14, 2026
3 checks passed
@thavelick thavelick deleted the add_mdlink_script branch February 14, 2026 00:35
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