This commit is contained in:
Cleon 2023-02-04 18:35:28 +13:00
parent 4a713ab8ed
commit 6e2a255d6b
2 changed files with 4 additions and 4 deletions

View file

@ -96,7 +96,7 @@ Read and write vault files.
- The loaded data is also returned
- `const dataurl = await $.io.load_data_url( path, mimetype? )`
- Encode the contents of a file into a dataurl for use in a template
- Optionaly specify the mime type.
- Optionally specify the mime type.
- Auto mime type mappings are available for the following common file extensions: `.jpeg`, `.jpg`, `.png`, `.gif`, `.svg`, `.css`
- `await $.io.output( file, content, open? )`
- (Over)Writes the `file` with given `content`
@ -157,7 +157,7 @@ Markers can be used to replace sections of a note with dynamic values. Sections
- `markers = await $.markers.fetch()`
- Returns the markers found in the target file
- `changes = await $.markers.apply( clearUnknownMarkerValues? )`
- Applys set marker values to the target file
- Applies set marker values to the target file
- `clearUnknownMarkerValues` is optional, set it to `false` if you want to prevent unset markers being blanked out.
### Examples

View file

@ -36,7 +36,7 @@ await $.ui.message('This is the init codeblock');
```
````
Multiple codeblocks with the same tag will be concatinated together before running.
Multiple codeblocks with the same tag will be concatenated together before running.
To skip a codeblock all together, use the `skip` tag like this:
````md
@ -143,7 +143,7 @@ See the [API](api.md) or another [example](examples/guess-the-number-marker.md)
## Accessing the DataView plugin API
If you are fimilar with the [DataView](https://github.com/blacksmithgu/obsidian-dataview) plugin and have it installed, you can access it's [js api](https://blacksmithgu.github.io/obsidian-dataview/api/code-reference/) via the `$.dv.` interface.
If you are familiar with the [DataView](https://github.com/blacksmithgu/obsidian-dataview) plugin and have it installed, you can access it's [js api](https://blacksmithgu.github.io/obsidian-dataview/api/code-reference/) via the `$.dv.` interface.
For example:
````md