Skip to content

prollynomial/markdownify

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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');

About

Browserify transform for markdown documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published