Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

showdown-classify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

showdown-classify

Markdown image class syntax sugar

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Showdown Classify

Markdown html class syntax sugar for showdown output

simple add `{.classname} to the end of image def

![image alt](http://lorempixel.com/400/200){.thumbnail}

and you'll get

<img alt="image alt" src="http://lorempixel.com/400/200" class="thumbnail" />

Instalation

bower install showdown-classify
npm install showdown-classify

Usage

example usage in nodejs

const showdown = require('showdown');
require('showdown-classify');

let converter = new showdown.Converter({ extensions: ['classify'] });
let text = '![image alt](http://lorempixel.com/400/200){.thumbnail}';
let html = converter.makeHtml(text);

console.log(html)

// Output:
// <p><img class="thumbnail" src="http://lorempixel.com/400/200" alt="image alt" ></p>

Keywords

FAQs

Package last updated on 12 May 2016

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