mirror of
https://github.com/meld-cp/obsidian-build.git
synced 2026-07-22 07:30:25 +00:00
docs
This commit is contained in:
parent
f3daa76531
commit
320c6a21f7
1 changed files with 1 additions and 28 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue