twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.09k stars 66 forks source link

fix readme notebook example #342

Closed danielmeloalencar closed 4 months ago

danielmeloalencar commented 5 months ago

In the current example of the readme Notebook, _let_** is used to declare a variable, but an error occurs as shown in the screenshot. The error occurs regardless of the order in which the blocks are executed.

The issue is resolved when we declare the variable with var. I recommend making this correction to prevent the example from failing and giving the impression that the plugin doesn’t work correctly.

image

nfiles commented 4 months ago

+1: this works the same way on my 2019 Mac Pro. let variables are not visible between blocks, but var variables are.

twibiral commented 4 months ago

Thanks for noticing!

twibiral commented 4 months ago

Published in release version 1.12.0