
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
remark-multiline-code
Advanced tools
remark plugin to turn
inlineCodewith multiline intocodetype
npm install remark-multiline-code --save
Say we have the following file, example.md:
# Post title
Some post content...
`const param = true
console.log(param)`
`const client = () => {}`
And our script, example.js, looks as follows:
const vfile = require('to-vfile')
const remark = require('remark')
const multilineCode = require('remark-multiline-code')
remark()
.use(multilineCode)
.use({ settings: { fences: true } })
.process(vfile.readSync('example.md'), function (err, file) {
if (err) throw err
console.log(String(file))
})
Now, running node example yields:
# Post title
Some post content...
```
const param = true
console.log(param)
```
```
const client = () => {}
```
As you can see inlineCode which contained multilines and inlineCode that was the only children in paragraph were turned into code blocks.
FAQs
Remark plugin to improve `code` blocks
The npm package remark-multiline-code receives a total of 4 weekly downloads. As such, remark-multiline-code popularity was classified as not popular.
We found that remark-multiline-code 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.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.