Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
remark-images
Advanced tools
Remark plugin to turn image urls into rendered images.
npm i -S remark-images
const remark = require('remark')
const images = require('remark-images')
const html = require('remark-html')
remark()
.use(images)
.use(html)
.process(markdownString, function (err, file) {
if (err) { throw err }
console.log(String(file))
})
#### A url
Below will render an image:
https://c8r-x0.s3.amazonaws.com/lab-components-macbook.jpg
Supported urls / uris:
http://example.com/image.jpg
/image.jpg
./image.jpg
../image.jpg
Supported file types:
png
svg
jpg
jpeg
gif
FAQs
remark plugin to add a simpler image syntax
The npm package remark-images receives a total of 9,764 weekly downloads. As such, remark-images popularity was classified as popular.
We found that remark-images 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.