{"action":"created","issue":{"url":"https://api.github.com/repos/github/markup/issues/516","labels_url":"https://api.github.com/repos/github/markup/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/github/markup/issues/516/comments","events_url":"https://api.github.com/repos/github/markup/issues/516/events","html_url":"https://github.com/github/markup/pull/516","id":91160364,"number":516,"title":"Display unknown restructuredText directives","user":{"login":"pmaupin","id":2379062,"avatar_url":"https://avatars.githubusercontent.com/u/2379062?v=3","gravatar_id":"","url":"https://api.github.com/users/pmaupin","html_url":"https://github.com/pmaupin","followers_url":"https://api.github.com/users/pmaupin/followers","following_url":"https://api.github.com/users/pmaupin/following{/other_user}","gists_url":"https://api.github.com/users/pmaupin/gists{/gist_id}","starred_url":"https://api.github.com/users/pmaupin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmaupin/subscriptions","organizations_url":"https://api.github.com/users/pmaupin/orgs","repos_url":"https://api.github.com/users/pmaupin/repos","events_url":"https://api.github.com/users/pmaupin/events{/privacy}","received_events_url":"https://api.github.com/users/pmaupin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-26T05:32:57Z","updated_at":"2015-06-26T17:24:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/markup/pulls/516","html_url":"https://github.com/github/markup/pull/516","diff_url":"https://github.com/github/markup/pull/516.diff","patch_url":"https://github.com/github/markup/pull/516.patch"},"body":"This addresses issue #514.\r\n\r\nPrevious behavior was to silently ignore unknown directives and\r\ncomments, which made .rst documents that utilized rst extensions\r\nappear to be incomplete.  This fix allows all the information to\r\nbe displayed, and further allows comments to be placed to indicate\r\nthat the github rst viewer is not the preferred viewer for the\r\ndocument.\r\n\r\nThis patch will not alter the appearance of any document that\r\nis specifically coded for display at github which doesn't use\r\nrestucturedText comments.\r\n\r\nAdditional possible enhancements include figuring out how to\r\ngray out this text, and/or to support a special github directive\r\nat the start of the text file that controls whether this new\r\nbehavior is enabled."},"comment":{"url":"https://api.github.com/repos/github/markup/issues/comments/115787455","html_url":"https://github.com/github/markup/pull/516#issuecomment-115787455","issue_url":"https://api.github.com/repos/github/markup/issues/516","id":115787455,"user":{"login":"gjtorikian","id":64050,"avatar_url":"https://avatars.githubusercontent.com/u/64050?v=3","gravatar_id":"","url":"https://api.github.com/users/gjtorikian","html_url":"https://github.com/gjtorikian","followers_url":"https://api.github.com/users/gjtorikian/followers","following_url":"https://api.github.com/users/gjtorikian/following{/other_user}","gists_url":"https://api.github.com/users/gjtorikian/gists{/gist_id}","starred_url":"https://api.github.com/users/gjtorikian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjtorikian/subscriptions","organizations_url":"https://api.github.com/users/gjtorikian/orgs","repos_url":"https://api.github.com/users/gjtorikian/repos","events_url":"https://api.github.com/users/gjtorikian/events{/privacy}","received_events_url":"https://api.github.com/users/gjtorikian/received_events","type":"User","site_admin":true},"created_at":"2015-06-26T17:24:37Z","updated_at":"2015-06-26T17:24:37Z","body":"![](http://i.imgur.com/iYjs3A1.gif)\r\n\r\nThanks for this! It'll take some time to go through and review thoroughly. One thing that strikes my eye: doesn't the section listed as `YOU SHOULD NOT SEE THIS!` partially defeat the point? I would think that every unrenderable text should still be shown (as an error). \r\n\r\n> Additional possible enhancements include figuring out how to\r\n> gray out this text\r\n\r\nIf we can emit a class name--say, `github-markup-rst-error`--we can pass it through and style it appropriately on GitHub.com. "}}