Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
postcss-epub
Advanced tools
PostCSS plugin to give correct ePub3 css output.
See the EPUB 3 CSS Profile for more information.
$ npm install postcss-epub
fonts:true
- This will ensure fonts have the correct font-weight and font-style defaults. This will also throw an error if any there is not a valid font source format (opentype or woff).strip:true
- This will strip any non -epub-
prefixes.strict:true
- Implies all other options are set.postcss([ require("postcss-epub") ])
// or
postcss([ require("postcss-epub")({strict:true}) ])
See PostCSS docs for examples for your environment.
@font-face {
font-family: 'Fake Font';
src: local('Fake Font'),
url('path/to/font.woff') format('woff'),
url('path/to/font.ttf') format('truetype'),
url('path/to/font.otf') format('opentype');
}
stuff {
dont: care;
hyphens: all;
line-break: normal;
text-align-last: center;
text-emphasis: red triangle;
text-emphasis-color: red;
text-emphasis-style: triangle;
word-break: break-all;
-webkit-prefix: something;
}
@font-face {
font-family: 'Fake Font';
src: local('Fake Font'),url('path/to/font.woff') format('woff'),url('path/to/font.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
stuff {
dont: care;
-epub-hyphens: all;
hyphens: all;
-epub-line-break: normal;
line-break: normal;
-epub-text-align-last: center;
text-align-last: center;
-epub-text-emphasis: red triangle;
text-emphasis: red triangle;
-epub-text-emphasis-color: red;
text-emphasis-color: red;
-epub-text-emphasis-style: triangle;
text-emphasis-style: triangle;
-epub-word-break: break-all;
word-break: break-all;
}
[2.2.6] - 2015-05-26
strict
- same as setting all other options (including future ones)fonts
- check font defaults and formatsstrip
- remove non -epub- prefixesFAQs
PostCSS plugin to prefix ePub3 properties
The npm package postcss-epub receives a total of 5 weekly downloads. As such, postcss-epub popularity was classified as not popular.
We found that postcss-epub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.