refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 371 forks source link

Allow any protocols for links #293

Open cmrd-senya opened 7 years ago

cmrd-senya commented 7 years ago

This issue is similar to #180 which was solved before.

I think this should be made even more flexible. Why restrict link types only to three options currently? There are many other types of links that might be desirable. For example bitcoin://, ftp://, magnet://, tg:// or many others which we can't think of currently, but which a user may want to enter. I think we should allow any text at all, or make configurable regexp, or just regexp colon like \w+:\.+, or something else, but we shouldn't make assumptions on protocols which we allow.