Markdown Formulamarkdown formula is a Visual Studio Code extension which evaluates Excel-like formulas in markdown tables. To make markdown readable with other parsers and to emphazise that the cell value is the output of a formula, link style formatting is used to create a formula. The structure of a markdown formula consist of two parts:
Here, "#FORMULA" is the Excel-like formula which will be evaluated. The hash symbol (#) is used to identify the markdown-formula and it is a replacement for '=' sign in Excel formulas. The purpose of using '#' instead of '=' is to take advantage of the URI fragments and create valid URL address from the given formulas. The "VALUE" is the result of the "#FORMULA" and automatically generated by this extension. All the calculations are fulfilled via the popular open-source library HyperFormula. Using the Excel-like naming convention, table columns are addressed with letters (A,B,...) and the table rows are addressed with numbers (1,2,..). markdown formula parses all the tables in the current document and seperates them as sheets. If a comment line ('<!-- NAME -->') exist just before the table header, it is assigned as the sheetname for the table. If a comment line does not exist, the sheet name is automatically generated as "Sheet#N" where the #N is the zero based order of the table in the document. Basic ExampleIn this basic example, we have a table which consist of five rows and three columns. The last column of the first two rows (namely C1 and C2) are used to construct the (C3:C5) rows.
Using Cells From Other SheetsIn this example, we will use the cells of the previous table in our current table.
Extension Settingsmarkdown formula has some customization options under the VS Code's settings panel.
How to UseYou have three alternatives to install this extension.
After installing the extension;
|