{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/220","repository_url":"https://api.github.com/repos/ProseMirror/prosemirror","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/220/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/220/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/220","id":136446577,"number":220,"title":"A way for node types to control/restrict their content","user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T16:58:10Z","updated_at":"2016-03-31T14:21:47Z","closed_at":null,"body":"We will need this for various use cases:\r\n\r\n* 'heading can only appear as the first node of a section'\r\n\r\n* 'a figure has a caption followed by one or more images'\r\n\r\n* 'all rows in a table have the same number of columns'\r\n\r\nDesigning a usable and sound way to do this remains a partially open question. Feel free to submit additional use cases. This also ties into #187 since preserving these restrictions during replace is the hardest aspect."},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/203960721","html_url":"https://github.com/ProseMirror/prosemirror/issues/220#issuecomment-203960721","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/220","id":203960721,"user":{"login":"wes-r","id":1568246,"avatar_url":"https://avatars.githubusercontent.com/u/1568246?v=3","gravatar_id":"","url":"https://api.github.com/users/wes-r","html_url":"https://github.com/wes-r","followers_url":"https://api.github.com/users/wes-r/followers","following_url":"https://api.github.com/users/wes-r/following{/other_user}","gists_url":"https://api.github.com/users/wes-r/gists{/gist_id}","starred_url":"https://api.github.com/users/wes-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wes-r/subscriptions","organizations_url":"https://api.github.com/users/wes-r/orgs","repos_url":"https://api.github.com/users/wes-r/repos","events_url":"https://api.github.com/users/wes-r/events{/privacy}","received_events_url":"https://api.github.com/users/wes-r/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T14:21:47Z","updated_at":"2016-03-31T14:21:47Z","body":"Few use cases of mine:\r\n* Lists can only contain paragraphs and other lists\r\n* Blockquotes can only contain paragraphs\r\n* Headings can only contain text and certain marks (notably NOT bold)"}}