{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss/issues/871","repository_url":"https://api.github.com/repos/postcss/postcss","labels_url":"https://api.github.com/repos/postcss/postcss/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss/issues/871/comments","events_url":"https://api.github.com/repos/postcss/postcss/issues/871/events","html_url":"https://github.com/postcss/postcss/issues/871","id":173497321,"number":871,"title":"Processor instance doesn't include parser","user":{"login":"GarthDB","id":125516,"avatar_url":"https://avatars.githubusercontent.com/u/125516?v=3","gravatar_id":"","url":"https://api.github.com/users/GarthDB","html_url":"https://github.com/GarthDB","followers_url":"https://api.github.com/users/GarthDB/followers","following_url":"https://api.github.com/users/GarthDB/following{/other_user}","gists_url":"https://api.github.com/users/GarthDB/gists{/gist_id}","starred_url":"https://api.github.com/users/GarthDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarthDB/subscriptions","organizations_url":"https://api.github.com/users/GarthDB/orgs","repos_url":"https://api.github.com/users/GarthDB/repos","events_url":"https://api.github.com/users/GarthDB/events{/privacy}","received_events_url":"https://api.github.com/users/GarthDB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-26T16:55:24Z","updated_at":"2016-08-27T10:18:41Z","closed_at":null,"body":"If I wanted to reuse a processor it has the plugins, but it doesn't include the parser.\r\n\r\nI could recreate the same processor by passing the same options through, but it seems like the parser is just as integral a part of the processor instance as the plugins, maybe more so.\r\n\r\nChatting with @ben-eb in the gitter - he brought up remarks' [api](https://github.com/wooorm/remark/tree/master/packages/remark#usage). It is well documented in [unified](https://github.com/wooorm/unified#table-of-contents)."},"comment":{"url":"https://api.github.com/repos/postcss/postcss/issues/comments/242908961","html_url":"https://github.com/postcss/postcss/issues/871#issuecomment-242908961","issue_url":"https://api.github.com/repos/postcss/postcss/issues/871","id":242908961,"user":{"login":"wooorm","id":944406,"avatar_url":"https://avatars.githubusercontent.com/u/944406?v=3","gravatar_id":"","url":"https://api.github.com/users/wooorm","html_url":"https://github.com/wooorm","followers_url":"https://api.github.com/users/wooorm/followers","following_url":"https://api.github.com/users/wooorm/following{/other_user}","gists_url":"https://api.github.com/users/wooorm/gists{/gist_id}","starred_url":"https://api.github.com/users/wooorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wooorm/subscriptions","organizations_url":"https://api.github.com/users/wooorm/orgs","repos_url":"https://api.github.com/users/wooorm/repos","events_url":"https://api.github.com/users/wooorm/events{/privacy}","received_events_url":"https://api.github.com/users/wooorm/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T10:18:41Z","updated_at":"2016-08-27T10:18:41Z","body":"> **Disclaimer: I’m biased.**\r\n\r\nI’m all for unified. 😉 👍 I’ve thought a lot about creating processors with retext/remark/* and unified works well. I don’t know too much about PostCSS and the likes though.\r\n\r\n> but Unified’s AST basis is not the best\r\n\r\nThat’s not entirely true.\r\n\r\na) [unified](https://github.com/wooorm/unified) is separate from [Unist](https://github.com/wooorm/unist): you can use any syntax tree you like (at least it should work, but is untested).\r\n\r\nb) Unist defines that nodes must have a `type`. All other stuff is optional.\r\nI *really* suggest using `value: string` for text nodes, `children: Array.<Node>` for parents, and `position: {start: {line, column, offset}, end: {line, column, offset}}` though. You don’t have to, but it works in my experience.\r\n\r\nFinally, by using these properties, you get [these](https://github.com/wooorm/unist#list-of-utilities) helpers with it for free! 🎈\r\n"}}
{"actor":{"display_login":"wooorm"}}