Feature Request: Allow Link Extension to cusomtize the default protocol. #5021
Closed
henryStelle
started this conversation in
Feature Requests
Replies: 1 comment
-
Duplicate: #5007 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Right now, if you are using the Link extension, there is no way to customize the default protocol.
For example, if the auto linker sees "example.com" it will create "http://example.com" as the href.
I suggest adding an optional
defaultProtocol
option like this:So that when "example.com" is parsed, the href created is "https://google.com"
I checked the linkify docs and this is as simple as passing the default protocol to their
toObject
function called inpackages/extension-link/src/helpers/autolink.ts
Use Case
Anyone who wants links to be secure by default.
Type
New feature
Beta Was this translation helpful? Give feedback.
All reactions