0.8.9 • Published 8 years ago

gitbook-parsers v0.8.9

Weekly downloads
922
License
Apache-2.0
Repository
github
Last release
8 years ago

GitBook Parsers

NPM version Build Status

This Javascript module provides a low level parsing interface for GitBooks. The API is promise-based, and this module can be used in both Node.js and the Browser.

Parsers

ParserLatest VersionTests
MarkdownNPM versionBuild Status
AsciiDocNPM versionBuild Status
reStructuredTextNPM versionBuild Status

Usage

This module can be used in node.js and in the browser

In the Browser:

Include the file:

<script src="library/gitbook-parsers.min.js" />
In Node.js:
npm install gitbook-parsers

Then include it using:

var gitbookParsers = require("gitbook-parsers");
Find a parser for a file:
var parser = gitbookParsers.getForFile("FILE.md");
Use this parser:

Parse the summary:

parser.summary("* [An entry](./test.md)")
.then(function(summary) { ... });

Parse the glossary:

parser.glossary("...")
.then(function(glossary) { ... });

Parse the languages index:

parser.langs("...")
.then(function(languages) { ... });

Parse a page to html:

parser.page("...")
.then(function(sections) { ... });
0.8.9

8 years ago

0.8.8

8 years ago

0.8.7

9 years ago

0.8.6

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.7

9 years ago

0.7.6

9 years ago

0.7.5

9 years ago

0.7.4

9 years ago

0.7.3

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago