README
SMASH-MD
SMASHING your markdown!! Using !!import
import code blocks, raw markdown files in your markdown! Awesome!!
Install
sudo npm install -g smash-md
Usage
smashmd test/data/load_js.md > test/dist/load_js.md
For example:
test.md
# This is a test of importing js code
!!import "test.js";
## Hello
!!import "test.css"
!!import "test.md"
## Importing twice
!!import "test.css"
## Import raw md
!!import "raw!test.md"
after smash-md
will become:
# Importing js code
```js
function bar() {
return "bar";
}
function foo() {
return "foo" + bar();
}
```
## Hello Importing md, css, and any code in code block
```css
body {
color: red;
cursor: pointer;
background-color: black;
}
#wow {
color: blue;
}
```
This is a test file
### This is awesome!!
## Importing twice
```css
body {
color: red;
cursor: pointer;
background-color: black;
}
#wow {
color: blue;
}
```
## Import raw md
This is a test file
### This is awesome!!
Thanks
This repository is modified from the original repository here by @mbostock
see original licence here
License
MIT