Marked supports alignment notation in Markdown tables where |---:| indicates a right-aligned column.
Extend this to support [:0-9] where
all of these symbols indicate right-alignment
a digit indicates formatting with that many decimal places
A currency symbol was considered but
currency does not always includes cents
a large range of symbols would have to be supported to allow other currencies
It is simpler to specify the precision with a digit and indicate the currency in the column header. We could examine the column header for a single non-alphabetic character and treat it as a currency symbol but again there are a lot of symbols and variation in associated display formats.
Marked supports alignment notation in Markdown tables where
|---:|
indicates a right-aligned column.Extend this to support
[:0-9]
whereA currency symbol was considered but
It is simpler to specify the precision with a digit and indicate the currency in the column header. We could examine the column header for a single non-alphabetic character and treat it as a currency symbol but again there are a lot of symbols and variation in associated display formats.