~charles/cdaniels.net

9fbf986e9714638d6f6ff275d9675e5cdcb43d2b — Charles Daniels 3 months ago 9e6ef57
improve compatibility with updated lowdown version
2 files changed, 6 insertions(+), 8 deletions(-)

M bin/rssg
M bin/ssg3
M bin/rssg => bin/rssg +3 -4
@@ 62,10 62,9 @@ no_file() {
md_to_html() {
	test -x "$(which lowdown)" || exit 3
	lowdown \
	-D html-skiphtml \
	-D smarty \
	-d metadata \
	-d autolink "$1"
		--html-no-skiphtml \
		--html-no-escapehtml \
		"$1"
}



M bin/ssg3 => bin/ssg3 +3 -4
@@ 181,10 181,9 @@ render_md_files() {
	while read -r f
	do
		lowdown \
		-D html-skiphtml \
		-D smarty \
		-d metadata \
		-d autolink < "$1/$f" |
			--html-no-skiphtml \
			--html-no-escapehtml \
			< "$1/$f" |
		render_html_file "$1" "$3" "$4" "$5" "$6" \
		> "$2/${f%\.md}.html"
	done