
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
remark-fix-guillemets
Advanced tools
This plugin fixes `typographic-plugin` when used together with `remark-parse`.
This plugin fixes typographic-plugin
when used together with remark-parse
.
When <<a>>
is parsed by remark-parse
the resulting tree is:
root[1] (1:1-1:6, 0-5)
└─ paragraph[3] (1:1-1:6, 0-5)
├─ text: "<" (1:1-1:2, 0-1)
├─ html: "<a>" (1:2-1:5, 1-4)
└─ text: ">" (1:5-1:6, 0-1)
As you see here <<
got split into a text node <
and an HTML node.
Since remark-textr only gets applied to 'text' nodes, <<
is not replaced by «
.
This plugin replaces the previous tree with:
root[1] (1:1-1:6, 0-5)
└─ paragraph[1] (1:1-1:6, 0-5)
└─ text: "<<a>>" (1:1-1:6, 0-5)
npm:
npm install --save remark-fix-guillemets
Dependencies:
const unified = require('unified')
const remarkParse = require('remark-parse')
const stringify = require('rehype-stringify')
const remark2rehype = require('remark-rehype')
const remarkFixGuillemets = require('remark-fix-guillemets')
Usage:
unified()
.use(remarkParse)
.use(remarkFixGuillemets)
.use(remark2rehype)
.use(stringify)
FAQs
This plugin fixes `typographic-plugin` when used together with `remark-parse`.
We found that remark-fix-guillemets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.