From a9c9291bea1d86b2127633f1e91abf55699848cb Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Tue, 28 Mar 2023 00:21:54 +0200 Subject: [PATCH] Doc. Update instructions to include piped tables --- README | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/README b/README index 4d6cc95..5b75e94 100644 --- a/README +++ b/README @@ -43,25 +43,39 @@ echo -ne "Första post\nAndra\nTredje plats\nOch fjärde\n" \ | ranknauto -s heavy ``` -Bullet lists are respected, so bullet that are fed will remain in the -output. Already ranked lists can be inserted; the previous -ranking is ignored. Empty lines are ignored. +Bullet lists, numbered item lists and piped tables are all respected. +That means that bullets which are fed will remain in the output. The +numbering is regenerated, starting from 1. List patterns are preserved +at best effort, the widest input number is used for pattern +definition, and output is adopted for right alignment. Piped tables +are similarly regenerated. -The same holds for numbered item lists. The numbering is regenerated, -starting from 1. The list pattern is however preserved at best effort, -the widest input number is used for pattern definition, and output -is adopted for right alignment. +Also already ranked lists can be inserted; the previous ranking is +ignored. Empty lines are ignored. Example: ``` -echo -ne "\n * 48 % Första post\n * 9 % Och fjärde\n * 16 % Tredje plats\n * 27 % Andra\n" \ - | ranknauto -echo -ne "\n 3) 48 % Första post\n 4) 9 % Och fjärde\n 5) 16 % Tredje plats\n 6) 27 % Andra\n" \ - | ranknauto +cat <