Hypercubed / system-md-marked

jspm Markdown plugin (using marked)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

system-md-marked

Markdown loader for SystemJS using marked.

Overview

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

Installation

For installing with JSPM run:

jspm install md=github:Hypercubed/system-md-marked

Basic Use

import readmeHTML from './readme.md!'

Configuration

Marked 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
          }
        }
      }
    }
  }
});

Acknowledgements

This code is based on guybedford/system-md.

License

MIT

About

jspm Markdown plugin (using marked)

License:MIT License


Languages

Language:JavaScript 84.1%Language:HTML 15.9%