diff --git a/en/Obsidian Web Clipper/Filters.md b/en/Obsidian Web Clipper/Filters.md index be8245658..f05b4bdf6 100644 --- a/en/Obsidian Web Clipper/Filters.md +++ b/en/Obsidian Web Clipper/Filters.md @@ -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. @@ -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. \ No newline at end of file +- For strings it returns the input unchanged.