LiamRiddell / obsidian-solve

An unobtrusive Obsidian plugin that quietly processes equations and patterns in real time
MIT License
70 stars 0 forks source link

[Bug] `=` don't display if `%` is in the formula. #57

Open satler-git opened 3 months ago

satler-git commented 3 months ago

Describe the bug = don't display if % is in the fumula.

To Reproduce Steps to reproduce the behavior:

  1. Create new file.
  2. Write 100 * 50% and 100 * 0.5
  3. See error

Expected behavior Display = at any time.

Screenshots image

Obsidian

LiamRiddell commented 3 months ago

Thanks for bug report, this will be because the '100 0.5' is calculated by the Arithmetic provider and '100 50%' is calculated by Percentage provider.

If the output provider is Arithmetic then it will insert and '=' before the result which in this case it does.

I should remove this logic and make it a setting for each provider instead.