tgrosinger / md-advanced-tables

A text editor independent library to enable formatting and Excel-style navigation, and spreadsheet formulas to Markdown tables.
MIT License
151 stars 30 forks source link

Additional formatting options #50

Open naabtog opened 2 years ago

naabtog commented 2 years ago

I created an index with formulas like this:

<!-- TBLFM: @I$<=1 -->
<!-- TBLFM: @3$<..@>$<=(@-1+1) -->

There are 20 data rows so I want the index to be represented as 2-digit integers for a consistent look. But the output starts with 1 digit even if it's 01 instead of 1. It turned out that something like ;%02d doesn't work. Could you implement additional formatting options? Or maybe I'm missing something?


P.S. If I try to chain them, second formula evaluates first, which may give wrong results, but that's another story.

P.P.S. I just realized it's not the tgrosinger/advanced-tables-obsidian repository, sorry.