Skip to content

Commit 08bcc12

Browse files
committed
[add] pandoc template
1 parent 2a5c1db commit 08bcc12

File tree

4 files changed

+566
-0
lines changed

4 files changed

+566
-0
lines changed

.zshrc

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function shell_has_started_interactively() { [ ! -z "$PROMPT" ]; }
1313
function is_ssh_running() { [ ! -z "$SSH_CONECTION" ]; }
1414
function chpwd () { ls -GF }
1515
function mkdircd () { mkdir -p "$@" && builtin cd "$@" }
16+
function md2html () { pandoc "$1" -s --self-contained --template=github -c ~/.pandoc/templates/github.css -o "${1%.*}.html" }
1617

1718
# search src with fzf
1819
fzf-src() {

init.sh

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ fi
4242
ln -snf ~/dotfiles/colors ~/.vim/colors
4343
ln -snf ~/dotfiles/.docker/config.json ~/.docker/config.json
4444

45+
# pandoc
46+
mkdir -p ~/.pandoc
47+
ln -snf ~/dotfiles/templates/pandoc ~/.pandoc/templates
4548

4649
# bash git completion
4750

0 commit comments

Comments
 (0)