smash-md

0.1.2 • Public • Published

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:

./test/dist/load_js.md

# 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    16
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i smash-md

Weekly Downloads

4

Version

0.1.2

License

none

Last publish

Collaborators

  • chilijung