2017-05-06 Tags: hacking terminal
pandoc -f html -t plain https://www.theverge.com/2017/5/4/15547314/edward-snowden-cory-doctorow-nypl-talk-walkaway | less
In the example above,
-f specifies the input filetype, in this case
-t specifies the conversion filetype, in this case plain text.
Pandoc supports a ton of different formats, you can read the man
page for more info.
The next logical step is to make a script like my wordpress mutt
make this even easier. You could make a simple program called
and put it in
/usr/local/bin/reader. The contents of this script are:
1 2 3 4 5 6
#!/bin/bash # Terminal Reader Mode using Pandoc and Less url="$1" pandoc -f html -t plain $url | less
You can then use this by typing