lit-md
Version:
Literate programming done cheaply.
43 lines (26 loc) • 861 B
Markdown
# Literate Markdown
[](https://travis-ci.org/sapeien/lit-md)
[](https://www.npmjs.com/package/lit-md)
[](https://raw.githubusercontent.com/sapeien/lit-md/master/LICENSE)
Literate programming done cheaply. Extract indented blocks from Markdown files to produce executable code.
```
$ npm install lit-md
```
## Usage
```sh
$ lit-md < input.js.md > output.js
```
The input might look like:
```md
Some program
============
Add one and one together.
1 + 1
That's all!
```
This outputs:
```
1 + 1
```
## License
This software is licensed under the [GPL v3 license](//github.com/sapeien/lit-md/blob/master/LICENSE).