All Projects → jonschlinkert → gfm-code-blocks

jonschlinkert / gfm-code-blocks

Licence: MIT License
Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gfm-code-blocks

Commonmark
Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
Stars: ✭ 2,128 (+10540%)
Mutual labels:  gfm, github-flavored-markdown
prettier-markdown
Parse code blocks in markdown files and run prettier on them
Stars: ✭ 37 (+85%)
Mutual labels:  code, blocks
smart-garden-ornaments
The smart garden ornaments project! 🦩🌱🤖
Stars: ✭ 20 (+0%)
Mutual labels:  blocks
algoexpert-data-structures-algorithms
A collection of solutions for all problem statements on the AlgoExpert Coding Interview platform.
Stars: ✭ 134 (+570%)
Mutual labels:  code
react-native-sms-user-consent
React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort.
Stars: ✭ 45 (+125%)
Mutual labels:  code
indent.js
Pure code indentation for jsx, tsx, ts, js, html, css, less, scss.
Stars: ✭ 55 (+175%)
Mutual labels:  code
editor-blocks
A unique collection of Gutenberg blocks for the new WordPress editor.
Stars: ✭ 28 (+40%)
Mutual labels:  blocks
ne-spectrum
A Unifying Perspective on Neighbor Embeddings along the Attraction-Repulsion Spectrum
Stars: ✭ 17 (-15%)
Mutual labels:  code
Awesome-Deepfakes-Detection
A list of tools, papers and code related to Deepfake Detection.
Stars: ✭ 30 (+50%)
Mutual labels:  code
Hacktoberfest2020
Repository for first timers to get started in Open Source Contributions
Stars: ✭ 44 (+120%)
Mutual labels:  code
larapos
Laravel Point of sale with invoice full source code free download pos apps.
Stars: ✭ 38 (+90%)
Mutual labels:  code
yode
Yode - Focused Code Editing
Stars: ✭ 28 (+40%)
Mutual labels:  code
godot-engine.code-snapshot
A plugin for Godot Engine which will let you take beautified snapshots of your code within the Editor. Configure the frame as you like, with GDScript syntax already highlighted.
Stars: ✭ 32 (+60%)
Mutual labels:  code
awesome-ecommerce
Collect and develop Open Source or Free Projects for building ecommerce platform easy and fast and free
Stars: ✭ 39 (+95%)
Mutual labels:  code
CodeAndQuestsEveryDay
Regular research on the Quest for developers.
Stars: ✭ 27 (+35%)
Mutual labels:  code
CCHv2
CCHv2 - A powerful contest helper for CodeForces, developed by NW.js.
Stars: ✭ 108 (+440%)
Mutual labels:  code
Abracadabra
A truly plug 'n' play solution for securing your code.
Stars: ✭ 12 (-40%)
Mutual labels:  code
ml4se
A curated list of papers, theses, datasets, and tools related to the application of Machine Learning for Software Engineering
Stars: ✭ 46 (+130%)
Mutual labels:  code
BCN3DSigma-Firmware
Custom Marlin version for the brand new BCN3D Sigma from BCN3D Technologies
Stars: ✭ 81 (+305%)
Mutual labels:  code
riblet-sample
A sample to represent Uber Riblets design pattern using Swift.
Stars: ✭ 42 (+110%)
Mutual labels:  code

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].