0.4.1 • Published 3 years ago

@daucus/pandoc v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@daucus/pandoc

Install & use Pandoc in Nodejs.

Conceived for Daucus, but can also be used independently.

:book: Documentation

npm i @daucus/pandoc
import { convert } from "@daucus/pandoc";

const markdown = `# Hello World

Welcome to Pandoc :wave:
`;

const html = convert("markdown+emoji", "html", markdown);

console.log(html);
// <h1 id="hello-world">Hello World</h1>
// <p>Welcome to Pandoc <span class="emoji" data-emoji="wave">👋</span></p>

Prerequisites

When installed, @daucus/pandoc will automatically download the Pandoc binary. Therefor, you'll never depend on any Pandoc local installation.

Yet, other dependencies may be needed for advanced usages, like Python (when using some Pandoc filters like pandoc-import-code) or LaTeX (to create PDFs). Refer to the Pandoc installation documentation for more information.

0.4.1

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago