Hi so I want to add "auto-generated" row number into a table in asciidoc file. I have something like this.
.Sample Table
[cols=2, options="header"]
|===
|ID | Description
|1
|This is row #1
|2
|This is row #2
|===
Where 1 and 2 are hardcoded. Is there a way to make them auto-generated? Like how we can have "." in list view to become numbers.
Thanks, KT.
Try using the {counter} attribute. Here's a tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With