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 HTML.
-t specifies the conversion filetype, in this case plain text. Pandoc supports a ton of different formats, you can read the man pagefor more info.
The next logical step is to make a script like my wordpress mutt posterto make this even easier. You could make a simple program called
readerand 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