diff --git a/src/h12title b/src/h12title
index b5f6026..a004f75 100755
--- a/src/h12title
+++ b/src/h12title
@@ -36,9 +36,15 @@ main()
| grep '
)[^<]+' \
- )
+ ) || {
+ echo 'error: h12title: failed to locate heading' >&2
+ exit 1
+ }
- sed "s#$placeholder#${title/&/\\&}#" <<< "$body"
+ sed "s#$placeholder#${title/&/\\&}#" <<< "$body" || {
+ printf "error: h12title: failed title replacement: '%s'\n" "$title" >&2
+ exit 1
+ }
}
main "$@"
diff --git a/src/post2html b/src/post2html
index b332338..7fca77d 100755
--- a/src/post2html
+++ b/src/post2html
@@ -135,7 +135,7 @@ main()
pandoc -f"$( pexts )" -thtml5 \
--standalone --template src/pandoc.tpl \
--metadata pagetitle:ignoreme \
- --base-header-level=1 \
+ --wrap none \
-B <( src/mkheader post @__PAGE_TITLE__@ ) \
-A src/footer.tpl.htm \
< <( prefmt < "$file" ) \