gfm-code-blocks

WebJar for gfm-code-blocks

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gfm-code-blocks
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

gfm-code-blocks
WebJar for gfm-code-blocks
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jonschlinkert/gfm-code-blocks

Download gfm-code-blocks

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gfm-code-blocks/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gfm-code-blocks</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gfm-code-blocks/
implementation 'org.webjars.npm:gfm-code-blocks:0.3.0'
// https://jarcasting.com/artifacts/org.webjars.npm/gfm-code-blocks/
implementation ("org.webjars.npm:gfm-code-blocks:0.3.0")
'org.webjars.npm:gfm-code-blocks:jar:0.3.0'
<dependency org="org.webjars.npm" name="gfm-code-blocks" rev="0.3.0">
  <artifact name="gfm-code-blocks" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gfm-code-blocks', version='0.3.0')
)
libraryDependencies += "org.webjars.npm" % "gfm-code-blocks" % "0.3.0"
[org.webjars.npm/gfm-code-blocks "0.3.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : gfm-code-block-regex jar [0.2.1,0.3)

Project Modules

There are no modules declared in this project.

gfm-code-blocks NPM version NPM monthly downloads NPM total downloads Linux Build Status

Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.

Install

Install with npm:

$ npm install --save gfm-code-blocks

Usage

var codeBlocks = require('gfm-code-blocks');
console.log(codeBlocks('usage\n```js\nvar qux = 123;\n```\nxyz'));
//=> {lang: 'js', 
//  code: 'var qux = 123;', 
//  block: '```js\nvar qux = 123;\n```',
//  start: 6,
//  end: 30}

About

Related projects

Contributing

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

Contributors

Commits Contributor
16 jonschlinkert
3 tunnckoCore

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.4.3, on March 16, 2017.

Versions

Version
0.3.0