Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ! in front (extended image syntax) for whitelisted sites #13

Closed
kristofferR opened this issue Apr 20, 2021 · 3 comments
Closed

Add ! in front (extended image syntax) for whitelisted sites #13

kristofferR opened this issue Apr 20, 2021 · 3 comments

Comments

@kristofferR
Copy link

kristofferR commented Apr 20, 2021

I'm using this is conjunction with the media-extended plugin, and it's so close to working great.

However, when pasting embeddable links with this plugin I still need to manually add a ! in front of every pasted link, to create the ![]() extended image syntax.

It would be great if you could whitelist certain sites with this plugin to automatically add the ! in front when pasting.

That way you could embed Youtube links (for example) as quick as you could paste them, would be really useful.

@aidenlx
Copy link
Contributor

aidenlx commented Apr 20, 2021

I've added a new feature that inserts [](url) when no selection is present, just wait until the pull request is accepted & published and choose the option in the setting tab. You can type ! and paste the link directly without selecting anything.

@kristofferR
Copy link
Author

That will work okay for now, but it would still be awesome if we didn't have to write ! all the time. :)

With the whitelist functionality mentioned both embeddable and non-embeddable links could be pasted perfectly quickly without extra effort.

You could potentially add more advanced customization functionality, by letting users customize the [](url) fragment with certain snippets and custom shortcuts. [$Domain](url) set in the plugin settings could for example result in [Wikipedia - Title](url) while pasting Wikipedia-links, $Date would be useful too, etc etc.

Tons of potential.

However, a whitelist for embeddable links would be much simpler to implement quickly though.

@denolehov
Copy link
Owner

whitelist functionality has been added, please update the plugin :)

big thanks to @aidenlx once again for your contribution! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants