Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit 07f4d7a

Browse files
committed
Configure Make to remove comments from Markdown
1 parent a09a957 commit 07f4d7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TARGETS=$(addprefix $(BUILD)/,license.md license.docx license.pdf license.html)
44
all: $(TARGETS)
55

66
$(BUILD)/%.md: %.md | $(BUILD)
7-
fgrep -v "<!--" $< > $@
7+
fgrep -v "<!--" $< | sed '/^\s*$$/d' | awk 'ORS="\n\n"' > $@
88

99
$(BUILD)/%.docx: %.md | $(BUILD)
1010
pandoc -o $@ $<

0 commit comments

Comments
 (0)