文章出处:http://netkiller.github.io/docbook/index.html
28.2. Markdown to HTML
pandoc -f markdown -t html5 -s example.md -o example.html
例 28.1. Makefile
PANDOC = pandoc PANDOCOPTS = -f markdown -t html5 PREFIX=.. HTML := $(patsubst %.md,%.html,$(wildcard *.md)) all: $(HTML) %.html: %.md $(PANDOC) $(PANDOCOPTS) -s $< -o $(PREFIX)/$@ clean: @rm -rf $(PREFIX)/*.html rebuild : clean all
时间: 2024-11-05 21:45:42