emmet icon indicating copy to clipboard operation
emmet copied to clipboard

Suggestion: wrap URL with "a" with https or additional caret stop

Open JayEn84 opened this issue 9 months ago • 3 comments

When wrapping a Domain/URL with an "a" tag, Emmet will automatically add the "http://" protocol within the href tag: www.github.com ==> <a href="http://www.github.com">www.github.com</a>

Since many (most?) websites a SSL encrypted nowadays, I have two ideas to address this problem: Either this should be changed from "http" to "https". Or an additional caret stop should be added between "http" and "://".

JayEn84 avatar May 02 '25 08:05 JayEn84

Yes, will change it in next release

sergeche avatar May 02 '25 22:05 sergeche

Hi @sergeche, I have raised a PR #751 to address this issue

theperfectpunk avatar Jun 07 '25 08:06 theperfectpunk

@sergeche we need to merge #750 first for the test cases to not fail.

theperfectpunk avatar Jun 07 '25 08:06 theperfectpunk