You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,13 @@ This plugin for Obsidian allows you to run JavaScript from within your notes usi
4
4
5
5
## Usage
6
6
7
-
Start by creating a code block with the `js-engine` plugin. Inside the code block you can write any JS code and at the end return a value.
8
-
The plugin will then render the returned value instead of the code block. When you return nothing, the plugin will not render anything and the code block will be invisible.
7
+
Start by creating a code block with the `js-engine` plugin.
8
+
Inside the code block you can write what ever JavaScript code that you want.
9
+
The plugin will run the JavaScript and render the returned value in place of the code block.
9
10
10
11
## API Docs
11
12
12
-
The following variables are available in the code blocks.
| context |`ExecutionContext` (this plugin) or `undefined`|
19
-
| component |`Component` (Obsidian) |
20
-
| container |`HTMLElement`|
21
-
22
-
Documentation for the API and types that are available inside the code block can be found [here](https://mprojectscode.github.io/obsidian-js-engine-plugin/classes/API.API.html).
13
+
Docs are available [here](https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/).
0 commit comments