{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/1709","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/1709/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/1709/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/1709/events","html_url":"https://github.com/WordPress/gutenberg/issues/1709","id":240449719,"number":1709,"title":"Add Block: Shortcode","user":{"login":"jasmussen","id":1204802,"avatar_url":"https://avatars3.githubusercontent.com/u/1204802?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmussen","html_url":"https://github.com/jasmussen","followers_url":"https://api.github.com/users/jasmussen/followers","following_url":"https://api.github.com/users/jasmussen/following{/other_user}","gists_url":"https://api.github.com/users/jasmussen/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmussen/subscriptions","organizations_url":"https://api.github.com/users/jasmussen/orgs","repos_url":"https://api.github.com/users/jasmussen/repos","events_url":"https://api.github.com/users/jasmussen/events{/privacy}","received_events_url":"https://api.github.com/users/jasmussen/received_events","type":"User","site_admin":false},"labels":[{"id":570263070,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Blocks","name":"Blocks","color":"fbca04","default":false},{"id":634645371,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/New%20Block","name":"New Block","color":"62ABDB","default":false},{"id":593977130,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/Priority%20Low","name":"Priority Low","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"aduth","id":1779930,"avatar_url":"https://avatars1.githubusercontent.com/u/1779930?v=4","gravatar_id":"","url":"https://api.github.com/users/aduth","html_url":"https://github.com/aduth","followers_url":"https://api.github.com/users/aduth/followers","following_url":"https://api.github.com/users/aduth/following{/other_user}","gists_url":"https://api.github.com/users/aduth/gists{/gist_id}","starred_url":"https://api.github.com/users/aduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduth/subscriptions","organizations_url":"https://api.github.com/users/aduth/orgs","repos_url":"https://api.github.com/users/aduth/repos","events_url":"https://api.github.com/users/aduth/events{/privacy}","received_events_url":"https://api.github.com/users/aduth/received_events","type":"User","site_admin":false},"assignees":[{"login":"aduth","id":1779930,"avatar_url":"https://avatars1.githubusercontent.com/u/1779930?v=4","gravatar_id":"","url":"https://api.github.com/users/aduth","html_url":"https://github.com/aduth","followers_url":"https://api.github.com/users/aduth/followers","following_url":"https://api.github.com/users/aduth/following{/other_user}","gists_url":"https://api.github.com/users/aduth/gists{/gist_id}","starred_url":"https://api.github.com/users/aduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduth/subscriptions","organizations_url":"https://api.github.com/users/aduth/orgs","repos_url":"https://api.github.com/users/aduth/repos","events_url":"https://api.github.com/users/aduth/events{/privacy}","received_events_url":"https://api.github.com/users/aduth/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/14","html_url":"https://github.com/WordPress/gutenberg/milestone/14","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/14/labels","id":2622777,"number":14,"title":"Beta 0.8.0","description":"","creator":{"login":"jasmussen","id":1204802,"avatar_url":"https://avatars3.githubusercontent.com/u/1204802?v=4","gravatar_id":"","url":"https://api.github.com/users/jasmussen","html_url":"https://github.com/jasmussen","followers_url":"https://api.github.com/users/jasmussen/followers","following_url":"https://api.github.com/users/jasmussen/following{/other_user}","gists_url":"https://api.github.com/users/jasmussen/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmussen/subscriptions","organizations_url":"https://api.github.com/users/jasmussen/orgs","repos_url":"https://api.github.com/users/jasmussen/repos","events_url":"https://api.github.com/users/jasmussen/events{/privacy}","received_events_url":"https://api.github.com/users/jasmussen/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":12,"state":"open","created_at":"2017-07-05T11:05:34Z","updated_at":"2017-08-10T14:41:07Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2017-07-04T15:20:07Z","updated_at":"2017-08-10T14:50:35Z","closed_at":null,"body":"Shortcodes work today. You just type a shortcode in a text block, and it works. This is in master today.\r\n\r\nIt would be nice, though, to add an affordance for shortcodes. A separate block instead of a text block, that uses a code font. Something like this, perhaps:\r\n\r\n![shortcode](https://user-images.githubusercontent.com/1204802/27835788-cc49dcaa-60dc-11e7-828a-c94b061c0370.png)\r\n"},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/321574711","html_url":"https://github.com/WordPress/gutenberg/issues/1709#issuecomment-321574711","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/1709","id":321574711,"user":{"login":"justintadlock","id":1816309,"avatar_url":"https://avatars3.githubusercontent.com/u/1816309?v=4","gravatar_id":"","url":"https://api.github.com/users/justintadlock","html_url":"https://github.com/justintadlock","followers_url":"https://api.github.com/users/justintadlock/followers","following_url":"https://api.github.com/users/justintadlock/following{/other_user}","gists_url":"https://api.github.com/users/justintadlock/gists{/gist_id}","starred_url":"https://api.github.com/users/justintadlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintadlock/subscriptions","organizations_url":"https://api.github.com/users/justintadlock/orgs","repos_url":"https://api.github.com/users/justintadlock/repos","events_url":"https://api.github.com/users/justintadlock/events{/privacy}","received_events_url":"https://api.github.com/users/justintadlock/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T14:50:35Z","updated_at":"2017-08-10T14:50:35Z","body":"One of the most-used shortcodes I currently have in one of my plugins is to show/hide the content the shortcode wraps based on who's viewing it.  This could be one word or multiple paragraphs.\r\n\r\nAn example:\r\n\r\n```\r\n[members_access capability=\"manage_options\"]\r\nThe content contained here can only be read by people with the \"manage_options\" capability.\r\n\r\nA paragraph.\r\n\r\n* A\r\n* List\r\n\r\nA big image.\r\n\r\nAnother paragraph.\r\n[/members_access]\r\n```\r\n\r\nIdeally, this sort of thing could be its own block in the future.\r\n\r\nHowever, for compatibility, how will this shortcode fit in with Gutenberg's block-based system? That's probably my primary concern as far as shortcodes go."}}
{"actor":{"display_login":"justintadlock"}}