{"action":"created","issue":{"url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/38","repository_url":"https://api.github.com/repos/raae/gatsby-remark-oembed","labels_url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/38/comments","events_url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/38/events","html_url":"https://github.com/raae/gatsby-remark-oembed/pull/38","id":414872068,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2NDg2NzQ4","number":38,"title":"Adds examples of oembed parameters","user":{"login":"kennethormandy","id":1581276,"node_id":"MDQ6VXNlcjE1ODEyNzY=","avatar_url":"https://avatars0.githubusercontent.com/u/1581276?v=4","gravatar_id":"","url":"https://api.github.com/users/kennethormandy","html_url":"https://github.com/kennethormandy","followers_url":"https://api.github.com/users/kennethormandy/followers","following_url":"https://api.github.com/users/kennethormandy/following{/other_user}","gists_url":"https://api.github.com/users/kennethormandy/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethormandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethormandy/subscriptions","organizations_url":"https://api.github.com/users/kennethormandy/orgs","repos_url":"https://api.github.com/users/kennethormandy/repos","events_url":"https://api.github.com/users/kennethormandy/events{/privacy}","received_events_url":"https://api.github.com/users/kennethormandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-02-26T23:34:38Z","updated_at":"2019-02-28T15:46:42Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/raae/gatsby-remark-oembed/pulls/38","html_url":"https://github.com/raae/gatsby-remark-oembed/pull/38","diff_url":"https://github.com/raae/gatsby-remark-oembed/pull/38.diff","patch_url":"https://github.com/raae/gatsby-remark-oembed/pull/38.patch"},"body":"Hi, thanks for your work on this plugin, it’s working really well for me!\r\n\r\nBefore I went too far with this, I was wondering what you thought about adding support for configuring individual oEmbed providers? As far as I could tell, this isn’t possible with the current plugin, although if I’ve missed something just let me know.\r\n\r\nI’ve hard-coded a Twitter example in `helpers.js` just as an easy way to try this idea out, but I would expect you would manually do something like this in your `gatsby-config.js`:\r\n\r\n```js\r\n// …\r\n{\r\n  resolve: `@raae/gatsby-remark-oembed`,\r\n  options: {\r\n    providers: {\r\n      include: [\r\n        {\r\n          name: 'Twitter', // Maybe resolve instead of name?\r\n          options: {\r\n            theme: 'dark' // Use the Twitter dark theme\r\n            dnt: true // Do not track\r\n            hide_media: true // Hide Twitter card media\r\n          }\r\n        },\r\n        'Instagram'\r\n      ],\r\n    },\r\n  },\r\n}\r\n// …\r\n```\r\n\r\nOn Twitter, this will let you configure some of the parameters you would normally change through `data-*` attributes, which of course don’t make sense here, because the HTML is generated for you. Another API I could imagine:\r\n\r\n```\r\nhttps://twitter.com/kennethormandy/status/1234?theme=dark\r\n```\r\n\r\nOr related to #23:\r\n\r\n```\r\noembed:https://twitter.com/kennethormandy/status/1234?theme=dark\r\n```\r\n\r\nPresumably, this would let you configure the settings for each individual embed, if you wanted something different between them. Personally, my use case would be solved with the global settings in `gatsby-config.js`, but I could see this being useful too.\r\n\r\n<!--\r\n\r\nFor example, with CodePen embed settings, [you could set heights](https://blog.codepen.io/documentation/api/oembed/), or with Instagram, you should be able to [enable or disable the caption](https://www.instagram.com/developer/embedding/) which can be very useful when you want to embed the photo with credit but not include the many hashtags someone has tacked onto the description.\r\n\r\n-->\r\n\r\nLooking forward to hearing what you think."},"comment":{"url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/comments/468322584","html_url":"https://github.com/raae/gatsby-remark-oembed/pull/38#issuecomment-468322584","issue_url":"https://api.github.com/repos/raae/gatsby-remark-oembed/issues/38","id":468322584,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODMyMjU4NA==","user":{"login":"raae","id":478531,"node_id":"MDQ6VXNlcjQ3ODUzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/478531?v=4","gravatar_id":"","url":"https://api.github.com/users/raae","html_url":"https://github.com/raae","followers_url":"https://api.github.com/users/raae/followers","following_url":"https://api.github.com/users/raae/following{/other_user}","gists_url":"https://api.github.com/users/raae/gists{/gist_id}","starred_url":"https://api.github.com/users/raae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raae/subscriptions","organizations_url":"https://api.github.com/users/raae/orgs","repos_url":"https://api.github.com/users/raae/repos","events_url":"https://api.github.com/users/raae/events{/privacy}","received_events_url":"https://api.github.com/users/raae/received_events","type":"User","site_admin":false},"created_at":"2019-02-28T15:46:42Z","updated_at":"2019-02-28T15:46:42Z","author_association":"OWNER","body":"I am liking this. \r\n\r\nLet's start with adding it to the config and let it be a global setting. \r\n\r\nWe can add the possibility of overriding settings on a link later.\r\n\r\nRemember to update docs and add tests as you see fit."}}
{"actor":{"display_login":"raae"}}