
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
remark-burger
Advanced tools
A remark plugin that extracts text sandwiched between 2 customizable markers & turns it into a node. A transformer or stringify function can then do whatever with the new node type.
yarn add remark-burger
npm install remark-burger
const burger = require('remark-burger')
remark()
.use(burger)
.parse('hello [[world]]')
//
// { type: 'patty',
// value: '',
// data: { content: 'world' },
// position: {
// start: { line: 1, column: 7, offset: 6 },
// end: { line: 1, column: 14, offset: 13 },
// indent: [] } }
interface RemarkBurgerOptions {
beginMarker?: string;
endMarker?: string;
pattyName?: string;
onlyRunWithMarker?: boolean;
insertBefore?: MarkdownMethods;
}
The default pair is [[ & ]].
remark()
.use(burger, {
beginMarker: '<<',
endMarker: '>>',
})
.parse('hello <<world>>')
If the marker pair conflicts with markdown default syntax, it won't work. For example, this won't work:
remark()
.use(burger, {
beginMarker: '`',
endMarker: '`',
})
.parse('hello `world`')
It is because by default, remark-burger's tokenizer priority is very low so it won't be conflicted with markdown syntax. This can be configured with insertBefore options.
The default name is patty, but it can be configured to be whatever.
This plugin won't run if no marker is declared. Default: false. The example below won't work:
// doesn't work
remark()
.use(burger, {
onlyRunWithMarker: true
})
.parse('hello [[world]]')
Change the order in which the parser will call this plugin's tokenizer. Here's the order list:
escape
autoLink
url
html
link
reference
strong
emphasis
deletion
code
break
<- remark-burger ->
text
By default, remark-burger's tokenizer is run before text. You can change this by passing in one of the method listed above. For example, this works:
remark()
.use(burger, {
beginMarker: '`',
endMarker: '`',
insertBefore: 'code',
})
.parse('hello `world`')
FAQs
extracts text sandwiched between markers
The npm package remark-burger receives a total of 1,031 weekly downloads. As such, remark-burger popularity was classified as popular.
We found that remark-burger 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.