Skip to content

feat: improve markdown link handling#845

Open
eclecticpassions wants to merge 2 commits into
getindiekit:mainfrom
eclecticpassions:feat-auto-md-links
Open

feat: improve markdown link handling#845
eclecticpassions wants to merge 2 commits into
getindiekit:mainfrom
eclecticpassions:feat-auto-md-links

Conversation

@eclecticpassions
Copy link
Copy Markdown

@eclecticpassions eclecticpassions commented Apr 30, 2026

Hi,

I wanted these two features for a long time as I'm very used to pasting links directly into selected text in VS Codium and Obsidian.

With some help from qwen2.5-coder, I figured how to add the two features into the textarea/index.js file. I tested it locally and it seems to be working! But I'd appreciate your feedback to see if it's worth adding to Indiekit main or if there's any errors/improvements.

My two additions:

  • Improve how Markdown links are handled when the "link" button is pressed by removing the placeholder https:// inside the (). Because, then I have to select the https:// and then paste the link from my clipboard. The extra step is a bit cumbersome (to me). Now, when the button is pressed, the cursor jumps to an empty () after the [link text] and ctrl+v will paste the link in, making it quicker and less fiddly.

  • Added new feature of generating Markdown links automatically a link is pasted into highlighted text. This means it doesn't require using the mouse to press the link button in the editor toolbar (like in GitHub).

Thanks @paulrobertlloyd!

Edit: correct wrong link to GitHub example

paulrobertlloyd and others added 2 commits April 4, 2026 22:00
- Improve how Markdown links are handled when the "link" button is pressed by removing the placeholder `https://` inside the `()`. Now when the button is pressed, the cursor jumps to the empty `()` after the `[link text]` and ctrl+v will paste the link in.
- Added new feature: auto paste links and have it be converted to Markdown link syntax automatically without using the link button in the editor toolbar (like in GitHub — https://github.blog/changelog/2022-02-02-paste-links-directly-in-markdown/).
@paulrobertlloyd paulrobertlloyd force-pushed the main branch 2 times, most recently from 421a288 to 84a8e9a Compare May 10, 2026 22:30
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