typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

[Summary] Syntax preferences when drop / paste urls

Open abnerlee opened this issue 6 years ago • 3 comments

Options:

  1. Insert as plain text, e.g: https://github.com/typora/typora-issues
  2. Convert to auto URL link, e.g: <https://github.com/typora/typora-issues>
  3. Convert to hyperlink, e.g: [https://github.com/typora/typora-issues](https://github.com/typora/typora-issues)
  4. Fetch target title and convert to hyperlink, e.g: `[typora/typora-issues: Bugs, suggestions or free discussions about the minimal markdown editor — Typora] #2168
  5. change Windows link slash () to Unix one (/) #3598
  6. copy and use relative path #4241
  7. add "./" on relative image path #4281

Currently, when user paste text, option 1 is used. When user paste <a href="url">url</a>, option 2 is used. When user paste <a href="url">text</a>, [text](url) is used.

The default behavior can be discussed, since some users wants plain text #2203, while some wants #2168. But I think current behavior is OK as the default one.


relates #985

abnerlee avatar Apr 19 '19 09:04 abnerlee

Possibly relates to #1612 and #1754?

vassudanagunta avatar Apr 19 '19 17:04 vassudanagunta

I came here to post an issue requesting Option #4 (automatically retrieve page title from URL). I have been using Boostnote and Visual Studio Code for Markdown editing until now. Option #4 is the only thing I miss from those editors. And I really miss it.

gauss256 avatar Apr 24 '19 23:04 gauss256

Another vote for:

5) change Windows link slash (\) to Unix one (/)

Although #3598 (which is Closed) is listed next to this item, it does not seem to have been addressed (or if it has, am I missing something?)

jp196 avatar Jan 17 '24 19:01 jp196