5

Is there an easy way to strip all markdown from a text file from the command line?

A solution that is installable with apt is preferable. But failing that apt is better than pip is better than gem is better than npm (for me).

Att Righ
  • 1,196

1 Answers1

11

Install pandoc with:

$ sudo apt install pandoc

Next run it:

$ pandoc  --from markdown --to plain -o output.txt input.md
garethTheRed
  • 33,957
  • i get unexpected results when testing pandoc online: https://pandoc.org/try/?text=the+**context**+is+in+%5Bthis+link%5D(https%3A%2F%2Fwww.test.com)&from=markdown_strict&to=plain – user1063287 Jul 22 '19 at 12:06