Last active
February 3, 2021 01:43
-
-
Save u1and0/22e392f1526cf07c4fe226a04cc5f39e to your computer and use it in GitHub Desktop.
Convert Markdown file to HTML file every 3sec using pandoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convert Markdown file to HTML file every 3sec using pandoc | |
# 引数に渡したmarkdownファイルを3秒ごとにpandocを通してhtml化する | |
# Requirement | |
# * docker | |
# * pandoc/core (docker container) | |
# Usage | |
# $ ~/sh/autopandoc.sh ./hoge.md | |
# then extract hoge.html | |
# Recommendation | |
# Firefox addon 'Auto Reload Tab' | |
while sleep 3; do | |
docker run -t --rm -v ${PWD}:/work pandoc/core /work/$1 > $(basename $1 .md).html | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment