guybedford / system-md

jspm Markdown plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plugin-md

Markdown loader for SystemJS

Overview

A plugin for SystemJS which enables you to import markdown files directly. The files are compiled in the browser to HTML using showdown.

Installation

For installing with JSPM run:

jspm install md

Basic Use

import readmeHTML from './readme.md!'

Configuration

Showdown configuration options are passed via "mdOptions".

Either: use the meta tag

System.config({
  meta: {
    '*.md': {
      loader: './md.js',
      mdOptions: {
        'tables': true
      }
    }
  }
});

Or: using packages configuration

System.config({
  packages: {
    'src': {
      meta: {
        "*.md": {
          loader: './md.js',
          mdOptions: {
            tables: true
          }
        }
      }
    }
  }
});

About

jspm Markdown plugin

License:MIT License


Languages

Language:JavaScript 55.8%Language:HTML 44.2%