[feature] add cmark-gfm for markdown file conversion
This commit is contained in:
parent
ed96531512
commit
815812b697
17
devel/cmark-gfm.sh
Executable file
17
devel/cmark-gfm.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user