{"action":"created","issue":{"url":"https://api.github.com/repos/sourcejs/Source/issues/225","repository_url":"https://api.github.com/repos/sourcejs/Source","labels_url":"https://api.github.com/repos/sourcejs/Source/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/sourcejs/Source/issues/225/comments","events_url":"https://api.github.com/repos/sourcejs/Source/issues/225/events","html_url":"https://github.com/sourcejs/Source/pull/225","id":152893611,"number":225,"title":"IDEA: ADD languagePlugins for markdown specs","user":{"login":"ndelangen","id":3070389,"avatar_url":"https://avatars.githubusercontent.com/u/3070389?v=3","gravatar_id":"","url":"https://api.github.com/users/ndelangen","html_url":"https://github.com/ndelangen","followers_url":"https://api.github.com/users/ndelangen/followers","following_url":"https://api.github.com/users/ndelangen/following{/other_user}","gists_url":"https://api.github.com/users/ndelangen/gists{/gist_id}","starred_url":"https://api.github.com/users/ndelangen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndelangen/subscriptions","organizations_url":"https://api.github.com/users/ndelangen/orgs","repos_url":"https://api.github.com/users/ndelangen/repos","events_url":"https://api.github.com/users/ndelangen/events{/privacy}","received_events_url":"https://api.github.com/users/ndelangen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-03T23:00:12Z","updated_at":"2016-05-03T23:48:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sourcejs/Source/pulls/225","html_url":"https://github.com/sourcejs/Source/pull/225","diff_url":"https://github.com/sourcejs/Source/pull/225.diff","patch_url":"https://github.com/sourcejs/Source/pull/225.patch"},"body":"https://github.com/sourcejs/Source/issues/223 asks for a way to allow spec builders to add pseudo-states documentation to their component.\r\n\r\nRight now, a way of doing that is rather verbose and repetitive when added to multiple specs.\r\n\r\nWe could add more code-blocks / languages to the languageRenderers. But this could potentially grow out of control when supporting many languages?\r\n\r\nAn other approach I decided to try is to create 'plugins' for markdown codeblock languages. Such plugins would act on code in sequence before the languageRenderers.\r\n\r\nThe implementation is not finished, I'm hoping this fits #223 use-case. What are your thoughts on this?"},"comment":{"url":"https://api.github.com/repos/sourcejs/Source/issues/comments/216700775","html_url":"https://github.com/sourcejs/Source/pull/225#issuecomment-216700775","issue_url":"https://api.github.com/repos/sourcejs/Source/issues/225","id":216700775,"user":{"login":"custa1200","id":161224,"avatar_url":"https://avatars.githubusercontent.com/u/161224?v=3","gravatar_id":"","url":"https://api.github.com/users/custa1200","html_url":"https://github.com/custa1200","followers_url":"https://api.github.com/users/custa1200/followers","following_url":"https://api.github.com/users/custa1200/following{/other_user}","gists_url":"https://api.github.com/users/custa1200/gists{/gist_id}","starred_url":"https://api.github.com/users/custa1200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/custa1200/subscriptions","organizations_url":"https://api.github.com/users/custa1200/orgs","repos_url":"https://api.github.com/users/custa1200/repos","events_url":"https://api.github.com/users/custa1200/events{/privacy}","received_events_url":"https://api.github.com/users/custa1200/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T23:48:22Z","updated_at":"2016-05-03T23:48:22Z","body":"Maybe the block could be along the lines of:\r\n``` markdown\r\n``` pseudo:link\r\n\r\n```\r\nfor pseudo's and somewhere in the plugin settings we can set the class pattern to add so in my case for pseudos I would define \".pseudo-class-*\"\r\n\r\nThen maybe for states it should be:\r\n``` markdown\r\n``` state:input-error__text--show\r\n\r\n```\r\n"}}