This commit is contained in:
Cleon 2023-01-07 20:33:23 +13:00
parent f3daa76531
commit 320c6a21f7

View file

@ -150,7 +150,6 @@ For example:
```js meld-build
// use DataView to fetch all notes within the vault
const pages = await $.dv.pages();
...
```
````
@ -168,32 +167,6 @@ await $.io.output( 'My List.md', md );
---
## Skipping `meld-build` blocks
If you have multiple `meld-build` codeblocks in a note, you can choose to ignore some by adding `skip` after `meld-build`.
For example, running the following will display the number 0.
````md
# My Runable Note
## code block 1
```js meld-build
let x = 0;
```
## code block 2, skipped
```js meld-build skip
x = 2;
```
## code block 3
```js meld-build
await $.ui.message(x);
```
````
---
## Other
- It's recommended to turn `on` the `Files & Links > Detect all file extensions` option in Obsidian. This will make working with files for templating easier.
- Hint: add `//@hide_when_reading` to a `JavaScript` codeblock to hide it in Reading mode.