#!/bin/sh DIR=$(dirname "$(readlink -f "$0")") . "$DIR/../env.sh" # install cmark-gfm: convert markdown to html,man,xml,latex,comman-mark case "$PM" in apt) sudo apt install -y cmark-gfm entr ;; pacman) sudo pacman -S --noconfirm --needed cmark-gfm entr ;; esac # live server for html previewing . "$PDIR/devel/nodejs.sh" sudo $NPM_BIN install -g live-server # convert to html with embeded