buttons
buttons copied to clipboard
Calculation not working
Wanted a counter button so started testing with the example code:
```button
name Add Em Up
type calculate
action 2+2
```
But nothing happened when clicking, nowhere to find the output
Win10, plugin version 0.4.15, Obsidian version 0.12.12
Weird! Does anything show up in the dev console?
to open the dev console I believe it is Ctrl+Shift+I on Windows or it should be under the View menu.
Let me know if anything shows up and I'll try to recreate the problem.
@shabegom nothing show in the console, no errors, no warnings
Expected result: write a 4
at the bottom of the note
I wonder if it is a platform specific issue. I don't have a Windows computer to test with.
Got the same bug on my MacOS too. No logs, no warnings.
I believe this is an issue with whitespace not being trimmed. Will push 0.2.16 and check if it is fixed.