
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
gatsby-remark-widows
Advanced tools
Automatically adds a non-breaking space between the last 2 words in a text node parsed by gatsby-transformer-remark. This ensures there isn't a "widow", or single word left at the end of a wrapped sentance/paragraph.
Lorem ipsum dolor sit Lorem irure aliquip magna labore qui
velit officia aliquip deserunt aliqua. Aute tempor fugiat nisi
adipisicing et aliquip sint minim cupidatat elit consequat
et.
:arrow_down:
Lorem ipsum dolor sit Lorem irure aliquip magna labore qui
velit officia aliquip deserunt aliqua. Aute tempor fugiat nisi
adipisicing et aliquip sint minim cupidatat elit
consequat et.
npm install --save gatsby-remark-widows
Currently uses \u00a0 to insert a space so you don't need to use dangerouslySetInnerHTML.
Your browser should™ render that as
Warning: This currently effects every text node. You can limit by word count via the options.
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
// Probably best to place after other plugins
plugins: [`gatsby-remark-widows`],
},
},
];
You may set some options to configure which text nodes are processed by their word count. Defaults to minLength: 4
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: 'gatsby-remark-widows',
options: {
minLength: 4, // default
maxLength: null, // default
},
},
],
},
},
];
FAQs
Removes widows from text over 4 words
The npm package gatsby-remark-widows receives a total of 9 weekly downloads. As such, gatsby-remark-widows popularity was classified as not popular.
We found that gatsby-remark-widows 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.