Skip to content

Commit

Permalink
修改background-color导致的页面内置图片出现问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Mar 7, 2015
1 parent 81c44f5 commit 3c5817d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/md_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function parse(str, note, sAttrs) {
} else {
cls = 'slide';
}
if (/background/.test(sAttrs)) {
if (/background/.test(sAttrs) && !/background-/.test(sAttrs)) {
cls += ' fill';
}
tagStart = '<slide class="' + cls + '" ' + sAttrs + '>';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nodeppt",
"jsname": "nodeppt",
"description": "A simple, in-browser, markdown-driven presentation framework",
"version": "1.0.0-1",
"version": "1.0.1",
"site": "https://github.com/ksky521/nodePPT",
"author": {
"name": "Theo Wang",
Expand Down

0 comments on commit 3c5817d

Please sign in to comment.