From 815812b697223add5530326b5c931f3fec789e6c Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 23 Nov 2020 11:55:55 +0800 Subject: [PATCH] [feature] add cmark-gfm for markdown file conversion --- devel/cmark-gfm.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 devel/cmark-gfm.sh diff --git a/devel/cmark-gfm.sh b/devel/cmark-gfm.sh new file mode 100755 index 0000000..39d1e36 --- /dev/null +++ b/devel/cmark-gfm.sh @@ -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