Skip to content

htdebeer/paja

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Paja is a simple JavaScript wrapper around pandoc, the great multi-format document converter. Paja is inspired by Paru, a Ruby wrapper for pandoc that I wrote earlier. Like Paru, Paja supports automating the use of pandoc. Paja is free software; Paja is licensed under the GNU General Public Licence version 3.

The current version of Paja is 0.0.3, which is an alpha version.

See Paja's webpage for more detailed documentation. Below follows a very brief excerpt of that documentation

Installation

Because Paja is a wrapper around pandoc, pandoc obviously is a requirement for Paja. Install Paja with npm:

npm install paja

Usage

The obligatory "hello world" program with paja:

const paja = require("paja");
const INPUT = `
> Hello World! 

from **Paja**`;

const markdown2html = paja.Pandoc.converter().from("markdown").to("html");

markdown2html.run(INPUT, console.log);

which will output:

<blockquote>
<p>Hello World!</p>
</blockquote>
<p>from <strong>Paja</strong></p>

For more examples, see the documentation or the examples subdirectory.

About

Pandoc wrapped around in JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published