kramdown command not found

In this troubleshooting guide we learn how to fix kramdown command not found error message

Introduction

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

kramdown: command not found

or when using sudo you get the following error message

sudo: kramdown: command not found

Solutions to kramdown: command not found

How To Fix kramdown: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu kramdown is provided by kramdown package.

kramdown is:

The kramdown is a fast, pure Ruby, Markdown parser and converter, using a strict syntax definition and supporting several common extensions.

The kramdown library is mainly written to support the kramdown-to-HTML conversion chain. However, due to its flexibility it supports other input and output formats as well. Here is a list of the supported formats:

  • input formats: kramdown (a Markdown superset), Markdown, HTML
  • output formats: HTML, kramdown, LaTeX (and therefore PDF)

This package contains the kramdown command.

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

sudo apt-get -y install kramdown

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

You can also use apt command to install kramdown.

sudo apt -y install kramdown

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

sudo aptitude install kramdown

Summary

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