Note Calc

by Sunny Yu
5
4
3
2
1
New Plugin

Description

Calculate arithmetic expressions in Live Preview and Reading view. - This plugin has not been manually reviewed by Obsidian staff.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Note Calc

Note Calc brings Apple Notes-style inline calculations to Obsidian. Write an arithmetic expression ending in = and the result appears in Live Preview and Reading view without changing the Markdown source.

Usage

Enter an expression on its own line:

Markdown source Live Preview / Reading view
2*3= 2*3=6
2 * 3 = 2 * 3 = 6
2+3*4= 2+3*4=14
(2+3)×4= (2+3)×4=20

Note Calc evaluates only lines that end with =. If an answer is already present, such as 2*3=6, the line is left unchanged.

Calculations are visual only. Note Calc never writes the generated answer into your note.

Supported syntax

  • Addition: +
  • Subtraction: - and
  • Multiplication: * and ×
  • Division: / and ÷
  • Remainder: %
  • Exponents: ^
  • Parentheses
  • Decimal numbers and scientific notation

Standard arithmetic precedence is supported: parentheses and exponents are evaluated before multiplication and division, followed by addition and subtraction.

Editing modes

  • Source mode shows the original Markdown without generated answers.
  • Live Preview shows answers alongside editable expressions.
  • Reading view shows answers in rendered notes.

Code blocks, inline code, math blocks, frontmatter, and links are ignored.

Platform support

Note Calc is designed for both desktop and mobile Obsidian. It is not marked as desktop-only.

Manual installation

Copy these files into .obsidian/plugins/note-calc/ inside your vault:

  • main.js
  • manifest.json
  • styles.css

Then reload Obsidian and enable Note Calc under Community plugins.

Development

npm install
npm run build

License

MIT