π» Markdown CLI
Hacky way to preview Markdown via terminal emulator
Add
~/.local/bin
to$PATH
vim ~/.profile
if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi
vim ~/.local/bin/rmd
#!/bin/bash pandoc $1 --highlight-style=zenburn \ | sed \"1s/^/<html> \n</title>rmd<\/title>/" \ | sed '$s/$/\n<\/html>/' | lynx -stdin
w3m
doesn’t like stdin, butelinks
(without -stdin) works
Ranger
Navigate to
file.md
:open_with rmd