summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-16 11:42:39 -0300
committerEuAndreh <eu@euandre.org>2025-04-16 11:42:39 -0300
commit99075b86b9b396af5e95937de2cd94b095037222 (patch)
tree749b8d199f276cfed3597718b60e9a902bd35393
parentsrc/adoc: Add section anchors globally, always (diff)
downloadadoc-99075b86b9b396af5e95937de2cd94b095037222.tar.gz
adoc-99075b86b9b396af5e95937de2cd94b095037222.tar.xz
src/adoc: Unset :idprefix: global header value
-rwxr-xr-xsrc/adoc15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/adoc b/src/adoc
index f953f01..4feed17 100755
--- a/src/adoc
+++ b/src/adoc
@@ -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