{"action":"created","issue":{"url":"https://api.github.com/repos/jonathantneal/mdcss/issues/9","repository_url":"https://api.github.com/repos/jonathantneal/mdcss","labels_url":"https://api.github.com/repos/jonathantneal/mdcss/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jonathantneal/mdcss/issues/9/comments","events_url":"https://api.github.com/repos/jonathantneal/mdcss/issues/9/events","html_url":"https://github.com/jonathantneal/mdcss/issues/9","id":126359936,"number":9,"title":"How can I read own CSS file?","user":{"login":"morishitter","id":1401513,"avatar_url":"https://avatars.githubusercontent.com/u/1401513?v=3","gravatar_id":"","url":"https://api.github.com/users/morishitter","html_url":"https://github.com/morishitter","followers_url":"https://api.github.com/users/morishitter/followers","following_url":"https://api.github.com/users/morishitter/following{/other_user}","gists_url":"https://api.github.com/users/morishitter/gists{/gist_id}","starred_url":"https://api.github.com/users/morishitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morishitter/subscriptions","organizations_url":"https://api.github.com/users/morishitter/orgs","repos_url":"https://api.github.com/users/morishitter/repos","events_url":"https://api.github.com/users/morishitter/events{/privacy}","received_events_url":"https://api.github.com/users/morishitter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jonathantneal/mdcss/labels/awaiting%20feedback","name":"awaiting feedback","color":"fbc500"}],"state":"closed","locked":false,"assignee":{"login":"jonathantneal","id":188426,"avatar_url":"https://avatars.githubusercontent.com/u/188426?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathantneal","html_url":"https://github.com/jonathantneal","followers_url":"https://api.github.com/users/jonathantneal/followers","following_url":"https://api.github.com/users/jonathantneal/following{/other_user}","gists_url":"https://api.github.com/users/jonathantneal/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathantneal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathantneal/subscriptions","organizations_url":"https://api.github.com/users/jonathantneal/orgs","repos_url":"https://api.github.com/users/jonathantneal/repos","events_url":"https://api.github.com/users/jonathantneal/events{/privacy}","received_events_url":"https://api.github.com/users/jonathantneal/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-01-13T07:32:54Z","updated_at":"2016-04-25T18:43:06Z","closed_at":"2016-01-29T15:32:39Z","body":"I tried to use mdcss in gulp, but I have a problem.\r\n\r\ngulpfile.js:\r\n\r\n```js\r\nvar postcss = require('gulp-postcss');\r\nvar gulp = require('gulp')\r\n\r\ngulp.task('css', function () {\r\n    return gulp.src('./src/css/*.css')\r\n      .pipe(\r\n        postcss([\r\n            require('mdcss')\r\n        ])\r\n      );\r\n});\r\n```\r\n\r\nsrc/css/sample.css(the code is picked from README):\r\n\r\n```css\r\n/*---\r\ntitle:   Buttons\r\nsection: Base CSS\r\n---\r\n\r\nButton styles can be applied to any element. Typically you'll want to use\r\neither a `<button>` or an `<a>` element:\r\n\r\n​```example:html\r\n<button class=\"btn\">Click</button>\r\n<a class=\"btn\" href=\"/some-page\">Some Page</a>\r\n​```\r\n*/\r\n\r\n.btn {\r\n    background-color: black;\r\n    color: white;\r\n}\r\n```\r\n\r\nAbove is the code I tried.\r\n\r\nBut, I could not get a correct result.  Here is the generated code block.\r\n\r\n```html\r\n<main>\r\n\t\r\n\t\t<section id=\"base-css\">\r\n\t\t\t<h2>Base CSS</h2>\r\n\t\t\t<div>\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t<section id=\"buttons\">\r\n\t\t\t<h3>Buttons</h3>\r\n\t\t\t<div>\r\n\t\t\t\t<p>Button styles can be applied to any element. Typically you&#39;ll want to use\r\neither a <code>&lt;button&gt;</code> or an <code>&lt;a&gt;</code> element:</p>\r\n<p>​```example:html</p>\r\n<p><button class=\"btn\">Click</button>\r\n<a class=\"btn\" href=\"/some-page\">Some Page</a>\r\n​```</p>\r\n\r\n\t\t\t\t\r\n\t\t\t</div>\r\n\t\t</section>\r\n\t\t\r\n\t\t\t</div>\r\n\t\t</section>\r\n\t\t\r\n\t<footer>Last modified Wednesday, 13 January 2016 16:09\r\n</main>\r\n```\r\n\r\nThere are no styles in `sample.css`(`.btn{}` rule).\r\n\r\nI wish your help."},"comment":{"url":"https://api.github.com/repos/jonathantneal/mdcss/issues/comments/214475349","html_url":"https://github.com/jonathantneal/mdcss/issues/9#issuecomment-214475349","issue_url":"https://api.github.com/repos/jonathantneal/mdcss/issues/9","id":214475349,"user":{"login":"LFeh","id":3603793,"avatar_url":"https://avatars.githubusercontent.com/u/3603793?v=3","gravatar_id":"","url":"https://api.github.com/users/LFeh","html_url":"https://github.com/LFeh","followers_url":"https://api.github.com/users/LFeh/followers","following_url":"https://api.github.com/users/LFeh/following{/other_user}","gists_url":"https://api.github.com/users/LFeh/gists{/gist_id}","starred_url":"https://api.github.com/users/LFeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LFeh/subscriptions","organizations_url":"https://api.github.com/users/LFeh/orgs","repos_url":"https://api.github.com/users/LFeh/repos","events_url":"https://api.github.com/users/LFeh/events{/privacy}","received_events_url":"https://api.github.com/users/LFeh/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T18:43:06Z","updated_at":"2016-04-25T18:43:06Z","body":"I'll try :) "}}