JSPM

to-gfm-code-block

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 424225
  • Score
    100M100P100Q180224F
  • License

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

Package Exports

  • to-gfm-code-block

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (to-gfm-code-block) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

to-gfm-code-block NPM version Build Status

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

Install with npm

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

Usage

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

Results in:

```js
var foo = bar;
```
  • markdown-utils: Micro-utils for creating markdown snippets.
  • remarkable: Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

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


This file was generated by verb-cli on March 11, 2015.