-
Notifications
You must be signed in to change notification settings - Fork 382
Description
As already mentioned in #244, the cell alignment behavior of the markdown renderer has changed in 1.0.x. In the previous version the default behavior was to automatically align strings left and numbers right. However, the new renderer's default is to align centered. That would be no issue if there was a flag to bring back the old behavior, but there's no such flag. The only thing I can configure is left, center, right or no alignment (which is the same as center). There's no auto alignment.
Here's a table output of the previous version of the module:
| NAME | READY | STATUS | STARTS | AGE |
|----------------------------------------------------|-------|---------|--------|-------|
| alertmanager-kube-prometheus-alertmanager-0 | 2/2 | Running | 35 | 11d |
| kube-prometheus-blackbox-exporter-5d85b5d8f4-tskh7 | 1/1 | Running | 17 | 1h44m |
| grafana-fcc54cbc9-bk7s8 | 1/1 | Running | 17 | 1d |
| kube-prometheus-kube-state-metrics-b4cd9487-75p7f | 1/1 | Running | 20 | 45m |
| kube-prometheus-node-exporter-bfzpl | 1/1 | Running | 17 | 54s |
As can be seen, strings are left and numbers (the "starts" column) are right aligned. If have tried every alignment option available, see sample code here, but the output is always the same (centered). I also tried the ColumnAligns
option, which doesn't work as well (last table in the output):
| COLFOO | COLBAR |
|:------:|:------:|
| x | y |
| COLFOO | COLBAR |
|:------:|:------:|
| x | y |
| COLFOO | COLBAR |
|:------:|:------:|
| x | y |
| COLFOO | COLBAR |
|:------:|:------:|
| x | y |
| COLFOO | COLBAR |
|:------:|:------:|
| x | y |
Is it possible to configure somehow the alignment of the markdown renderer to get the old behavior or could you please add an option for this?
Many thanks!
Tom