Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

@couleetech/n8n-nodes-pandoc

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@couleetech/n8n-nodes-pandoc

n8n node for document conversion using Pandoc

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
0
Created
Source

n8n-nodes-pandoc

This is a node for n8n that allows you to convert documents between different formats using Pandoc. It supports converting between various formats including Markdown, HTML, Microsoft Word (docx), LaTeX, and Plain Text.

NOTICE

This is just a node that I needed for a project and thought I'd share. It is 95% ai generated, Written in a couple hours, so don't expect the world from it. It works for the workflow I needed it for ( to convert a docx to markdown ). It may get future updates, but I'm not promising anything.

Prerequisites

  • n8n installed
  • Pandoc installed on the system

Installation

  • In Community Nodes, install @couleetech/n8n-nodes-pandoc

  • Important: Pandoc must be installed on your system for this node to work.

Docker Installation

If you're using n8n with Docker Compose, you'll need to modify your setup to include Pandoc. Here's how:

  • Create a Dockerfile:

    FROM docker.n8n.io/n8nio/n8n
    
    USER root
    RUN apk add --no-cache pandoc
    
    USER node
    
  • Update your docker-compose.yml:

    services:
      n8n:
        build: .
        # ... rest of your n8n configuration
    

    Instead of:

    services:
      n8n:
        image: docker.n8n.io/n8nio/n8n
    

Usage

The Pandoc Convert node provides the following functionality:

Input Parameters

  • Binary Property: Name of the binary property that contains the file to convert
  • From Format: Input format of the document (markdown, html, docx, latex, plain)
  • To Format: Output format for the conversion (markdown, html, docx, latex, plain)

Supported Formats

  • Markdown
  • HTML
  • Microsoft Word (docx)
  • LaTeX
  • Plain Text

Example Workflow

  • Upload or input a document using nodes like HTTP Request, Read Binary File, etc.
  • Connect the output to the Pandoc Convert node
  • Configure the conversion parameters (from format and to format)
  • The node will output the converted document in the specified format

Outputs

The node has two outputs:

  • Main output with the converted document
  • Secondary output for extracted images (if applicable)

Support

For issues and feature requests, please open an issue on GitHub.

Keywords

n8n-community-node-package

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts