Socket
Socket
Sign inDemoInstall

marked-cloudinary

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-cloudinary

marked renderer to generate cloudinary urls


Version published
Maintainers
1
Created
Source

marked-cloudinary

nodei.co

npm

github-issues

stars

forks

marked / cloudinary renderer to generate cloudinary urls.

install

npm i --save marked-cloudinary

usage

import markedCloudinary from 'markedCloudinary'
import marked from 'marked'

const renderer = new marked.Renderer()
renderer.image = markedCloudinary('my-cloud-name')

marked(
  '![image alt](cloudinary_id "image title { width: 400, height: 300, crop: \'fill\'}")',
  { renderer }
)
// <img src="http://res.cloudinary.com/my-cloud-name/image/upload/c_fill,h_300,w_400/v1/cloudinary_id" alt="image alt"> "image title"

quotes

The example above shows a problem you run into if trying to declare strings in js. The escaped quotes will work fine in this case.

In a markdown file, you can just use single quotes for string parameters.

compatibility

dist/index.js should be fully compatible with node 6

Author

Levi Wheatcroft levi@wht.cr

Contributing

Contributions welcome; Please submit all pull requests against the master branch.

License

MIT

Keywords

FAQs

Package last updated on 27 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc