diff options
-rwxr-xr-x | src/htmlbody | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/htmlbody b/src/htmlbody index e4e5692..1e31751 100755 --- a/src/htmlbody +++ b/src/htmlbody @@ -23,4 +23,11 @@ plaintext_links() { }' "$1" } -plaintext_links "$FILENAME" | asciidoctor -s - +indent_4_blocks() { + printf '<div><div><div><div>%s</div></div></div></div>' "$(cat -)" | + tidy -quiet -indent -xml | + head -n -4 | + tail -n +5 +} + +plaintext_links "$FILENAME" | asciidoctor -s - | indent_4_blocks |