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

livemd

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

livemd

Generate live-samples from markdown files

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

livemd

Generate live-samples from markdown files

With livemd you can easily generate runtime browser samples from corresponding code-blocks contained in markdown-files.

Supported languages:

  • HTML
  • CSS
  • Javascript
  • Coffeescript
  • SCSS
  • Less
  • Haml

Install

npm install livemd --save-dev

To use with preprocessor languages you need the appropriate modules to be installed.

npm install coffee-script
npm install node-sass
npm install less
npm install hamljs

Usage

var livemd = require('livemd');
livemd(src).done(function(result) {
  // Do something with the result
})

Options

options.paths

Type: Array Default value: []

Provide an array of include paths to pass to scss and less modules. Path to source is included by default.

options.prefilter

Type: Function Default value: null

Filter the input markdown by providing a function taking the original string as argument and returning the modified string.

options.wrap

Type: String Default value: '<div class="highlight-example"></div>'

Specify a wrapper for the generated live-samples.

Changelog

  • v0.0.6 - Remove debug output ;-)
  • v0.0.5 - Fixed fail on combined lexers
  • v0.0.3 - Wrap CSS
  • v0.0.2 - Added npm install info to README.md
  • v0.0.1 - Initial Release

Keywords

markdown

FAQs

Package last updated on 11 Oct 2015

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