New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

markdownify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdownify

Browserify transform for markdown documents.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

markdownify

Render markdown to HTML and require it in your front-end JavaScript.

Features

  • easy integration into build systems
  • markdown rendering with marked
  • syntax highlighting using pygmentize
  • uses GitHub Flavoured Markdown

Using

In your front-end code:

var blogPost = require('./markdown/post');

$('#content').html(blogpost);

In your build system:

/* Require browserify-markdown */
var markdownify = require('markdownify');

/* Configure Browserify to require markdown documents: */
var bify = browserify({
    extensions: [ '.md', '.markdown' ]
});

/* Set the transform for markdown documents: */
bify.transform(markdownify);

/* Add the entry point for Browserify. */
bify.add('./src/main.js');

Keywords

browserify

FAQs

Package last updated on 13 Sep 2014

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