You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Index terms**: Visible `((term))` and concealed `(((term,secondary,tertiary)))` with catalog generation
57
+
58
+
### Section Numbering
59
+
60
+
Documents with `:sectnums:` render numbered section headings (e.g., "1. Introduction", "1.1. Overview"). Control numbering depth with `:secnumlevels:` (default 3, max 5).
61
+
62
+
[source,console]
63
+
....
64
+
acdc convert -a sectnums -a secnumlevels=2 document.adoc
65
+
....
66
+
67
+
Table of contents entries are also numbered when `:sectnums:` is set.
68
+
69
+
### Syntax Highlighting
70
+
71
+
Source blocks with a language specified render with syntax highlighting (requires the `highlighting` feature flag). Uses syntect with inline CSS styles.
72
+
73
+
[source,console]
74
+
....
75
+
cargo build --features highlighting
76
+
acdc convert document.adoc
77
+
....
78
+
79
+
Falls back to plain text when the language isn't recognized.
Copy file name to clipboardExpand all lines: converters/terminal/README.adoc
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,13 @@ A simple terminal converter for `AsciiDoc` documents.
9
9
acdc convert --backend terminal simple.adoc
10
10
....
11
11
12
+
When stdout is a TTY, output is automatically piped through a pager (defaults to `less -FRX` on Unix, `more` on Windows). Use `--no-pager` to disable, or set the `PAGER` environment variable for a custom pager.
0 commit comments