diff options
author | EuAndreh <eu@euandre.org> | 2025-04-16 11:42:39 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-16 11:42:39 -0300 |
commit | 99075b86b9b396af5e95937de2cd94b095037222 (patch) | |
tree | 749b8d199f276cfed3597718b60e9a902bd35393 | |
parent | src/adoc: Add section anchors globally, always (diff) | |
download | adoc-99075b86b9b396af5e95937de2cd94b095037222.tar.gz adoc-99075b86b9b396af5e95937de2cd94b095037222.tar.xz |
src/adoc: Unset :idprefix: global header value
-rwxr-xr-x | src/adoc | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -68,8 +68,17 @@ indent_4_blocks() { tail -n +5 } +runadoc() { + asciidoctor \ + -s \ + -a sectanchors \ + -a idprefix \ + - +} + + cat "$FILENAME" | - plaintext_links | - asciidoctor -s -a sectanchors - | - fix_header_anchor_position | + plaintext_links | + runadoc | + fix_header_anchor_position | indent_4_blocks |