[feature] add cmark-gfm for markdown file conversion

This commit is contained in:
Klesh Wong 2020-11-23 11:55:55 +08:00
parent ed96531512
commit 815812b697

17
devel/cmark-gfm.sh Executable file
View File

@ -0,0 +1,17 @@
#!/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
;;
pacman)
sudo pacman -S --noconfirm --needed cmark-gfm
;;
esac
# convert to html with embeded <style>: cmark-gfm input.md --to html --unsafe