Features

Define table formulas in Markdown files

Recalculate all formulas in a file using custom command

Usage

To define a set of table formulas, you can add a special HTML comment below a given Markdown table (TBLFM is a tribute to an Emacs Org mode :) . Only the first comment under the table will be taken into account.

| Column A | Column B | Column C |

|:---------|:---------|:---------|

| 123 | 456 | 789 |

| 0 | 0 | 0 |

<!--TBLFM C2=A1+A2; C1=56*78/4 -->

The comment can span multiple lines and contain multiple formulas separated by a semicolon. Formulas are calculated in the order they are written.
Table cells are described using spreadsheet notation, columns designated with letters like A,B,C .. Z (and even more AA, AB etc.) and rows with integers 1,2,3 ...
You can also use range notation like A1:E23.
Moreover, hot-formula-parser contains also a big set of predefined functions which can be used in formulas. The list of these functions (taken by SUPPORTED_FORMULAS function) looks like this: