marksman icon indicating copy to clipboard operation
marksman copied to clipboard

Convert to Reference Link code action

Open bennypowers opened this issue 1 year ago • 1 comments

Thank you for publishing this useful package

given this file:

This paragraph has [a link](https://a.website) inline.

Let there be a code action called "Convert to Reference Link" which converts the file to

This paragraph has [a link][a-link] inline.

[a-link]: https://a.website

The code action would know to sort existing reference links by first-appearance, and would offer the user an input to choose the reference tag, pre-populated with the slugified link text.

bennypowers avatar Nov 08 '22 09:11 bennypowers