diff options
-rwxr-xr-x | src/htmlbody | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/htmlbody b/src/htmlbody index d24aa2a..48d6734 100755 --- a/src/htmlbody +++ b/src/htmlbody @@ -10,25 +10,4 @@ FILENAME="${1:-}" eval "$(assert-arg -- "$FILENAME" 'FILENAME.adoc')" -plaintext_links() { - awk -v BASE="$(basename "$FILENAME" .adoc)".html l' - { print } - /^----$/ { - in_block = !in_block - if (in_block) { - next - } - file = BASE "." count++ ".txt" - print "[role=plaintext]" - print "link:" file "[plaintext]" - }' "$1" -} - -indent_4_blocks() { - printf '<div><div><div><div>%s</div></div></div></div>' "$(cat -)" | - tidy -quiet -indent --show-body-only yes | - head -n -4 | - tail -n +5 -} - -plaintext_links "$FILENAME" | asciidoctor -s - | indent_4_blocks +exec adoc -sxn4 "$FILENAME" |