queen-raae / gatsby-remark-oembed

A GatsbyJS Plugin that transforms oembed links into its corresponding embed code.
https://gatsby-remark-oembed.netlify.com/
MIT License
162 stars 25 forks source link

Add support for an array of prefixes #47

Closed raae closed 5 years ago

raae commented 5 years ago

Lets users define their own prefixes like video:.

This would give users more control over their content, and also make it easier to migrate from other plugins were other prefixes have been used.

There are plugins for youtube, twitter etc. specifically. And the users of those will probably have lots of content already using a specific prefix.

In config usePrefix: ["video:", "oembed:"].

rayriffy commented 5 years ago

Cool idea! I will try a workaround with this.