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