# to-gfm-code-block [![NPM version](https://badge.fury.io/js/to-gfm-code-block.svg)](http://badge.fury.io/js/to-gfm-code-block)  [![Build Status](https://travis-ci.org/jonschlinkert/to-gfm-code-block.svg)](https://travis-ci.org/jonschlinkert/to-gfm-code-block)

> Generate a github-flavored-markdown fenced-code-block snippet.

Install with [npm](https://www.npmjs.com/)

```bash
npm i to-gfm-code-block --save
```

## Usage

```js
var mdpre = require('to-gfm-code-block');
mdpre('var foo = bar;', 'js');
```

Results in:

<pre>

```js
var foo = bar;
```

</pre>

## Related projects

* [markdown-utils](https://github.com/jonschlinkert/markdown-utils): Micro-utils for creating markdown snippets.
* [remarkable](https://github.com/jonschlinkert/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable)

## Running tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/to-gfm-code-block/issues/new)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 14, 2015._

<!-- deps:mocha -->