diff --git a/github-markdown.css b/github-markdown.css index 1146596..422151f 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -689,7 +689,7 @@ margin-top: 3px; } -.markdown-body .task-list-item-checkbox { +.markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; diff --git a/index.js b/index.js index 59717b4..35017b2 100644 --- a/index.js +++ b/index.js @@ -57,6 +57,11 @@ function cleanupCss(str) { return false; } + // work around GitHub Markdown API inconsistency #10 + if (el.selectors[0] === '.task-list-item-checkbox') { + el.selectors[0] = '.task-list-item input'; + } + // remove `body` from `body, input {}` if (el.selectors[0] === 'body' && el.selectors[1] === 'input') { el.selectors.shift();