ylc395 / joplin-plugin-note-link-system

A complete Link System for Joplin. Referrer(aka. backlink), Quick Link, Copy Anchor, Hover To Preview, and much more feature
154 stars 5 forks source link

Feature Request: Update URLs with page titles in Markdown format #37

Open mcx opened 8 months ago

mcx commented 8 months ago

As I reference a lot of websites in my notes, I find that I keep on having to use the Ctrl + K shortcut to paste in the link and the webpage title. Is it possible to have some way to prompt the user if they would like to convert the link they just pasted into Markdown format? More specifically it would identify URLs and fetch the page title to put it in Markdown format.

Example

What is typed: https://discourse.joplinapp.org/t/plugin-note-link-system/21768 What it is converted to: Plugin: Note Link System

Since the Note Link System already uses a Previewer, it should hopefully be straightforward to implement.

There is a plugin that does this called Edge Link MD: When pasting URL copied from Edge address bar, convert it to a Markdown link, but that only works for Microsoft Edge as they have a special clipboard format named Link Format.

mcx commented 8 months ago

@unode makes good points on why the update should be manual here.

For the manual method, right-clicking on a link should bring up an option to fetch the website's title and format it in Markdown format.