Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion en/Obsidian Web Clipper/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ String literals are supported and automatically wrapped in an object with a `str

Combine `map` with the `template` filter, e.g. `map:item => ({name: ${item.gem}, color: item.color})|template:"- ${name} is ${color}\n"`.

Note: Built-in filters cannot be used inside `map`. This means that, for example, trimming each value of an array cannot be done with `map`.

### `merge`

Adds new values to an array.
Expand Down Expand Up @@ -371,4 +373,4 @@ Removes duplicate values from arrays and objects.
- For arrays of primitives: `[1,2,2,3,3]|unique` returns `[1,2,3]`.
- For arrays of objects: `[{"a":1},{"b":2},{"a":1}]|unique` returns `[{"a":1},{"b":2}]`.
- For objects it removes properties with duplicate values, keeping the last occurrence's key.
- For strings it returns the input unchanged.
- For strings it returns the input unchanged.