@daucus/pandoc
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@daucus/pandoc

Install & use Pandoc in Nodejs.

Conceived for Daucus, but can also be used independently.

📖 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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @daucus/pandoc

    Weekly Downloads

    2

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    22.5 kB

    Total Files

    20

    Last publish

    Collaborators

    • noelmace