Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pandoc: Unknown reader: gfm

I'm trying to use pandoc (version 1.19.2.4) on Ubuntu 18.04 to render github flavoured markdown with:

pandoc --from gfm --to html README.md

This gives the error pandoc: Unknown reader: gfm.

I guess I need to verify/install gfm, but its not clear how to do this.

How do I fix this error? How do I use pandoc to generate github flavoured markdown?

like image 784
Fergie Avatar asked May 22 '19 08:05

Fergie


1 Answers

You are using an old version of pandoc, you'll need pandoc 2.0 or later. Either update Ubuntu to a sufficiently new version, or download a version from the latest release page.

like image 195
tarleb Avatar answered Sep 22 '22 08:09

tarleb