retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.86k stars 198 forks source link

URL / Image Links StackExchange Style #307

Open RoyiAvital opened 7 years ago

RoyiAvital commented 7 years ago

Hello,

Could you please add an option for adding URL / Image links in StackExchange Style?

Currently URL is [title of the URL](address of the URL).
Yet in cases the same URL is used many times and in case of long URL's this is not efficient and clutter the text.

In StackExchange they have nice solution:

This is samples text.
This [text of URL 001][1] and this is [text of URL 002][2]

  [1]: https://stackexchange.com/
  [2]: http://microsoft.com

They always keep the numbering according to their appearance in the text. Namely [1] will always be the first link used, etc...

This is the way to go when handling a lot of links in the same MarkDown document.

Any chance you implement this?

mitya57 commented 7 years ago

This already works for me. I think it is a standard Markdown feature. If it does not work then please send me a screenshot.

RoyiAvital commented 7 years ago

If I do it manually it works.

I meant adding a wizard which automatically creates this form of linking as it happen in the StackExchange editor.

Something like "Organize Links" which replaces the regular form [URL Text](URL Address) with the above form.