The meaning of life is to explore the world

Pandoc

Posted on By Jason Liu

Pandoc is a universal and powerful converter for markup languages
https://pandoc.org/

Show Ubuntu version

$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

Install Pandoc on Ubuntu

https://packages.ubuntu.com/search?keywords=pandoc
https://packages.ubuntu.com/bionic/i386/pandoc/download

Some of the mirror site for download:
deb http://cz.archive.ubuntu.com/ubuntu eoan main universe
deb th.archive.ubuntu.com/ubuntu/pool/universe/p/pandoc/pandoc_2.5-2_i386.deb eoan main universe
deb http://th.archive.ubuntu.com/ubuntu/ eoan main universe

#Installation commands:
sudo echo "deb http://th.archive.ubuntu.com/ubuntu/ eoan main universe" >>  /etc/apt/sources.list
sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt update
sudo apt install pandoc

Pandoc usage

$ pandoc -f html -t markdown /mnt/d/JekyllBlog/index.html -o index.md

FYI, installation path for Pandoc on Windows:
C:\Program Files\Pandoc\pandoc.exe