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

Remove need for parentheses around arithmetic operators #86

Open sbliven opened 6 months ago

sbliven commented 6 months ago

Currently parentheses are required for all arithmetic operations. This is unintuitive coming from most languages and makes equations more difficult to read. For example:

| I   | II  | III | iv  | sum |
| --- | --- | --- | --- | --- |
| 2   | 3   | 5   | 6   | 5   |
| 3   | 4   | 6   | 7   | 7   |
<!-- TBLFM: $5=($1+($2+($3+$4))) -->

(suggested solution for #70)

There are a number of issues where users struggled with this syntax (#62, #54, #43).

Could the parser syntax be changed to remove this requirement?