markdent-html command not found

In this troubleshooting guide we learn how to fix markdent-html command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

markdent-html: command not found

or when using sudo you get the following error message

sudo: markdent-html: command not found

Solutions to markdent-html: command not found

How To Fix markdent-html: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu markdent-html is provided by markdent package.

markdent is:

Markdent provides a toolkit for parsing Markdown (and Markdown variants, aka dialects). Unlike the other Markdown Perl tools, this module can be used for more than just generating HTML. The core parser generates events (like XML’s SAX), making it easy to analyze a Markdown document in any number of ways.

If you’re only interested in converting Markdown to HTML, you can use the Markdent::Simple::Document class to do this, although you can just as well use better battle-tested tools like Text::Markdown.

Markdown is a lightweight markup language with plain text formatting syntax. Its design allows it to be converted to many output formats, but the original tool by the same name only supports HTML.

This package provides the command-line tool markdent-html, including Perl module Markdent::CLI.

To fix this problem, we can install more using the command below.

sudo apt-get -y install markdent

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install markdent.

sudo apt -y install markdent

Or if you have aptitude installed you can use the following command.

sudo aptitude install markdent

Summary

In this tutorial we learn how to fix markdent-html command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.