GitBook Parsers
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
Parser | Latest Version | Tests |
---|---|---|
Markdown | ||
AsciiDoc | ||
reStructuredText |
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 = ;
Find a parser for a file:
var parser = gitbookParsers;
Use this parser:
Parse the summary:
parsersummary"* [An entry](./test.md)";
Parse the glossary:
parser;
Parse the languages index:
parser;
Parse a page to html:
parser;