mirror of
https://github.com/sindresorhus/github-markdown-css.git
synced 2024-03-22 13:10:53 +08:00
don't inherit font
from body
This commit is contained in:
parent
de5f4f635a
commit
86b8356ba6
2
index.js
2
index.js
|
@ -76,7 +76,7 @@ function cleanupCss(str) {
|
|||
if (el.selectors.length === 1 && /^(?:html|body)$/.test(el.selectors[0])) {
|
||||
el.declarations = el.declarations.filter(function (declaration) {
|
||||
// remove everything from body/html other than these
|
||||
if (/^font|^(?:line-height|color)$|text-size-adjust$/.test(declaration.property)) {
|
||||
if (/^(?:line-height|color)$|text-size-adjust$/.test(declaration.property)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user