Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
remark-textr
Advanced tools
Readme
Remark plugin for Textr — modular tool to make your typography better.
Process your markdown with Textr plugins, skipping code.
npm install --save remark-textr
import remark from 'remark';
import remarkTextr from 'remark-textr';
// textr plugin — just function to replace triple dots to ellipses
const ellipses = input => input.replace(/\.{3}/gim, '…');
const text = `
## spread operator...
function(...args) { return args; }
`.trim();
remark.use(remarkTextr, { plugins: [ ellipses ] }).process(text);/*
## spread operator…
function(...args) { return args; } */
Type: Object
Default: {}
Contain plugins
and options
which are Textr’s options. Check out Textr usage section.
Type: Array
Default: []
Array of Textr plugins. They are available on npm, labelled with textr keyword. Also you can easily create new one. Don’t be scared.
Type: Object
Default: {}
Any option was set in options
will be passed into Textr as it's options.
For example, you may want to set your ISO 639 locale code. It's important for right correction, basically for proper primary and secondary quotes.
remark-textr
as remark plugin has no CLI itself, so you are gonna use remark CLI instead. So check the remark-cli docs first. remark
and remark-textr
both have to be installed. Also you have to define textr
plugins as Array of Strings, but you are lucky and remark-textr
will require them for you!
remark --use "textr=plugins:['typographic-base']" README.md --output README.md
remark README.md --output README.md
With this .remarkrc
config defined:
{
"plugins": {
"textr": {
"plugins": [ "typographic-base"],
"options": { "locale": "en-us" }
}
}
}
MIT © Denys Dovhan
FAQs
remark plugin to improve typography with Textr
We found that remark-textr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).