{"action":"closed","issue":{"url":"https://api.github.com/repos/postcss/postcss-simple-vars/issues/48","repository_url":"https://api.github.com/repos/postcss/postcss-simple-vars","labels_url":"https://api.github.com/repos/postcss/postcss-simple-vars/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-simple-vars/issues/48/comments","events_url":"https://api.github.com/repos/postcss/postcss-simple-vars/issues/48/events","html_url":"https://github.com/postcss/postcss-simple-vars/issues/48","id":155151662,"number":48,"title":"Interpolate variables in comments","user":{"login":"VinSpee","id":582828,"avatar_url":"https://avatars.githubusercontent.com/u/582828?v=3","gravatar_id":"","url":"https://api.github.com/users/VinSpee","html_url":"https://github.com/VinSpee","followers_url":"https://api.github.com/users/VinSpee/followers","following_url":"https://api.github.com/users/VinSpee/following{/other_user}","gists_url":"https://api.github.com/users/VinSpee/gists{/gist_id}","starred_url":"https://api.github.com/users/VinSpee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinSpee/subscriptions","organizations_url":"https://api.github.com/users/VinSpee/orgs","repos_url":"https://api.github.com/users/VinSpee/repos","events_url":"https://api.github.com/users/VinSpee/events{/privacy}","received_events_url":"https://api.github.com/users/VinSpee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T00:26:19Z","updated_at":"2016-05-17T18:29:55Z","closed_at":"2016-05-17T18:29:55Z","body":"Hi!\r\n\r\nI'm writing a library that generates many classes. I'd like to use [mdcss](https://github.com/jonathantneal/mdcss) to document it, and i'd like to generate the docs in the CSS. I'm using postcss-each & postcss-for to generate class names and values, and I'd like to also generate values in comments, which they rely on postcss-simple-vars for. Here's what I mean:\r\n\r\n### input\r\n```\r\n@each $name, $size in (small, med, large), (.5rem, 1rem, 3rem) {\r\n\t/*---\r\n\t\ttitle: Font Size\r\n\t\tsection: Typography\r\n\t\t---\r\n\r\n\t\t```html\r\n\t\t<span class=\".font-$(name)\">.font-$(name)</span>\r\n\t\t```\r\n\t*/\r\n\t.font-$(name),\r\n\t.font-$(name) {\r\n\t\tfont-size: $(size);\r\n\t}\r\n}\r\n```\r\n\r\n### output:\r\n```\r\n/*---\r\n\ttitle: Font Size\r\n\tsection: Typography\r\n\t---\r\n\r\n\t```html\r\n\t<span class=\".font-small\">.font-small</span>\r\n\t```\r\n*/\r\n.font-small,\r\n.font-small {\r\n\tfont-size: .5rem;\r\n}\r\n\r\n/*---\r\n\ttitle: Font Size\r\n\tsection: Typography\r\n\t---\r\n\r\n\t```html\r\n\t<span class=\".font-med\">.font-med</span>\r\n\t```\r\n*/\r\n.font-med,\r\n.font-med {\r\n\tfont-size: 1rem;\r\n}\r\n\r\n/*---\r\n\ttitle: Font Size\r\n\tsection: Typography\r\n\t---\r\n\r\n\t```html\r\n\t<span class=\".font-large\">.font-large</span>\r\n\t```\r\n*/\r\n.font-large,\r\n.font-large {\r\n\tfont-size: 3rem;\r\n}\r\n```\r\n\r\nIt seems like we would just need to process the comment nodes in addition to other rules. Any interest in adding this feature? PR to follow.\r\n\r\nThanks!"}}