InsightConnect Marketplace

Markdown

Back to Marketplace

Markdown

v3.1.0

Convert markdown to and from various popular formats

Tags: markdown, html, pdf, utilities


Actions
  • HTML to Markdown
  • Markdown to HTML
  • Markdown to PDF
  • Markdown to TXT

Description

Markdown is a lightweight markup language with plain text formatting syntax. This plugin utilizes pandoc via pypandoc to manipulate Markdown content.

Key Features

  • Convert HTML to Markdown for simpler editing
  • Convert Markdown to HTML or PDF for formatted beautification

Requirements

This plugin does not contain any requirements.

Documentation

Setup

This plugin does not contain a connection.

Technical Details

Actions

HTML to Markdown

This action is used to convert HTML to Markdown.

Input
Name Type Default Required Description Enum Example
html bytes None False HTML data as bytes None None
html_string string None False HTML data as string None None

Example input:

Output
Name Type Required Description
markdown bytes False Markdown data as bytes
markdown_string bytes False Markdown data as string

Markdown to PDF

This action is used to convert Markdown to PDF.

Input
Name Type Default Required Description Enum Example
markdown bytes None False Markdown content represented in base64 None IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=
markdown_string string None False Markdown content as a string None # Rapid7 InsightConnect

Example input:

{
  "markdown": "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=",
  "markdown_string": "# Rapid7 InsightConnect"
}
Output
Name Type Required Description
pdf bytes False PDF data as bytes
pdf_string string False PDF data as string

Markdown to HTML

This action is used to convert Markdown to HTML.

Input
Name Type Default Required Description Enum Example
markdown bytes None False Markdown content represented in base64 None IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=
markdown_string string None False Markdown content as a string None # Rapid7 InsightConnect

Example input:

{
  "markdown": "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=",
  "markdown_string": "# Rapid7 InsightConnect"
}
Output
Name Type Required Description
html bytes False HTML data as bytes
html_string string False HTML data

Example output:

{
  "html": "PGgxIGlkPSJyYXBpZDctaW5zaWdodGNvbm5lY3QiPlJhcGlkNyBJbnNpZ2h0Q29ubmVjdDwvaDE+Cg==",
  "html_string": "\u003ch1 id=\"rapid7-insightconnect\"\u003eRapid7 InsightConnect\u003c/h1\u003e\n"
}

Markdown to TXT

This action is used to convert Markdown to TXT.

Input
Name Type Default Required Description Enum Example
markdown bytes None False Markdown content represented in base64 None IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=
markdown_string string None False Markdown content as a string None # Rapid7 InsightConnect

Example input:

{
  "markdown": "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q=",
  "markdown_string": "# Rapid7 InsightConnect"
}
Output
Name Type Required Description
txt bytes False TXT data as bytes
txt_string string False TXT data as string

Example output:

{
  "txt_string": "Rapid7 InsightConnect\n",
  "txt": "UmFwaWQ3IEluc2lnaHRDb25uZWN0Cg=="
}

Triggers

This plugin does not contain any triggers.

Custom Output Types

This plugin does not contain any custom output types.

Troubleshooting

This plugin does not contain any troubleshooting information.

Version History

  • 3.1.0 - New action: Markdown to TXT
  • 3.0.0 - Update Markdown to HTML and Markdown to PDF action titles and descriptions
  • 2.2.2 - New spec and help.md format for the Extension Library
  • 2.2.1 - Add utilities plugin tag for Marketplace searchability
  • 2.2.0 - PyPandoc bug fix | Support web server mode
  • 2.1.0 - Update to v2 Python plugin architecture | Change type of input/output to string
  • 2.0.1 - SSL bug fix in SDK
  • 2.0.0 - Rewrite
  • 0.1.0 - Initial plugin

Links

References

plugin_spec_version: v2
extension: plugin
products: [insightconnect]
name: markdown
title: Markdown
description: Convert markdown to and from various popular formats
version: 3.1.0
vendor: rapid7
support: community
status: []
resources:
  source_url: https://github.com/rapid7/insightconnect-plugins/tree/master/markdown
  license_url: https://github.com/rapid7/insightconnect-plugins/blob/master/LICENSE
tags:
- markdown
- html
- pdf
- utilities
hub_tags:
  use_cases: [data_utility]
  keywords: [markdown, html, pdf, utilities]
  features: []
actions:
  html_to_markdown:
    title: HTML to Markdown
    description: Convert HTML to Markdown
    input:
      html:
        title: HTML
        description: HTML data as bytes
        type: bytes
        required: false
      html_string:
        title: HTML String
        description: HTML data as string
        type: string
        required: false
    output:
      markdown:
        title: Markdown
        description: Markdown data as bytes
        type: bytes
        required: false
      markdown_string:
        title: Markdown
        description: Markdown data as string
        type: bytes
        required: false
  markdown_to_html:
    title: Markdown to HTML
    description: Convert Markdown to HTML
    input:
      markdown:
        title: Markdown Bytes
        description: Markdown content represented in base64
        type: bytes
        required: false
        example: "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q="
      markdown_string:
        title: Markdown String
        description: Markdown content as a string
        type: string
        required: false
        example: "# Rapid7 InsightConnect"
    output:
      html:
        title: HTML
        description: HTML data as bytes
        type: bytes
        required: false
      html_string:
        title: HTML
        description: HTML data
        type: string
        required: false
  markdown_to_pdf:
    title: Markdown to PDF
    description: Convert Markdown to PDF
    input:
      markdown:
        title: Markdown Bytes
        description: Markdown content represented in base64
        type: bytes
        required: false
        example: "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q="
      markdown_string:
        title: Markdown String
        description: Markdown content as a string
        type: string
        required: false
        example: "# Rapid7 InsightConnect"
    output:
      pdf:
        title: PDF
        description: PDF data as bytes
        type: bytes
        required: false
      pdf_string:
        title: PDF
        description: PDF data as string
        type: string
        required: false
  markdown_to_txt:
    title: Markdown to TXT
    description: Convert Markdown to TXT
    input:
      markdown:
        title: Markdown Bytes
        description: Markdown content represented in base64
        type: bytes
        required: false
        example: "IyBSYXBpZDcgSW5zaWdodENvbm5lY3Q="
      markdown_string:
        title: Markdown String
        description: Markdown content as a string
        type: string
        required: false
        example: "# Rapid7 InsightConnect"
    output:
      txt:
        title: TXT
        description: TXT data as bytes
        type: bytes
        required: false
      txt_string:
        title: TXT
        description: TXT data as string
        type: string
        required: false
Other plugins
McAfee Advanced Threat Defense
Rapid7   |   v1.5.0
Plugin
Get
Ivanti Security Controls
Rapid7   |   v1.3.0
Plugin
Get
Base64
Rapid7   |   v1.1.5
Plugin
Get
Fortinet FortiGate
Rapid7   |   v4.0.2
Plugin
Get
Jira
Rapid7   |   v6.0.0
Plugin
Get