-
-
Notifications
You must be signed in to change notification settings - Fork 176
[BUG] List properties with links don't work #1140
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Can't add links to list-type properties without a manual workaround.
To Reproduce
- Enable 'Format template variables as proper peroperty types (Beta)'
- Run the following template to test a list containing a single link:
--- authors: {{VALUE:authors}} --- ```js quickadd this.variables.authors = [`[[John Doe]]`]; ```
- Observe that the output is as desired, with
"marks being added automatically:--- authors: - "[[John Doe]]" ---
- Run the following template to test a list with multiple links:
--- authors: {{VALUE:authors}} --- ```js quickadd this.variables.authors = [`[[John Doe]]`, `[[Jane Doe]]`]; ```
Expected behavior
The following output:
---
authors:
- "[[John Doe]]"
- "[[Jane Doe]]"
---Actual behaviour
The following output:
---
authors: [[John Doe]],[[Jane Doe]]
---Workaround
Constructing the output myself as a string works:
---
authors: {{VALUE:authors}}
---
```js quickadd
this.variables.authors = `\n- "[[John Doe]]"\n- "[[Jane Doe]]"`;
```Obsidian Debug Info (required for bug reports)
SYSTEM INFO:
Obsidian version: 1.12.4
Installer version: 1.10.3
Operating system: #1-NixOS SMP PREEMPT_DYNAMIC Sun Jan 11 14:26:20 UTC 2026 6.18.5
Login status: not logged in
Language: en-GB
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Primary 2.10.0
Snippets enabled: 15
Restricted mode: off
Plugins installed: 26
Plugins enabled: 17
1: Style Settings v1.0.9
2: Folder notes v1.8.18
3: Auto Note Mover v1.2.7
4: BRAT v2.0.2
5: Templater v2.18.1
6: Linter v1.31.0
7: Dynamic Views v0.12.0
8: Persistent Graph v0.1.5
9: Iconic v1.1.8
10: Commander v0.5.4
11: TaskNotes v4.4.0
12: Sync Graph Settings v1.5.0
13: Pretty Properties v1.10.17
14: QuickAdd v2.12.0
15: Vimrc Support v0.10.2
16: Note Toolbar v1.29.24
17: Backlink Cache v2.11.12
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Environment (please complete the following information):
- Obsidian version: 1.12.4
- QuickAdd version: 2.12.0
- Operating system: NixOS 25.11 (Linux)
- Other plugins enabled: Templater, Linter. Disabling them doesn't change anything.
Console Logs
QuickAdd: (LOG) TemplateEngine.createFileWithTemplate: Collected 1 template property variables for Test file.mdQuickAdd: (LOG) Variables: authorsQuickAdd: (LOG) Post-processing front matter for Test file.md with 1 structured variablesQuickAdd: (LOG) Variable types: authors:objectQuickAdd: (ERROR) Failed to post-process front matter for file Test file.md: YAMLParseError: Unexpected scalar at node end at line 1, column 22:
authors: [[John Doe]],[[Jane Doe]]
^^^^^^^^^^^^^
. The file was created successfully, but structured variables may not be properly formatted. This usually happens when variable values contain unexpected types or when Obsidian's YAML processor encounters an issue. Check the console for more details about which variables caused the problem. Error: Failed to post-process front matter for file Test file.md: YAMLParseError: Unexpected scalar at node end at line 1, column 22:
authors: [[John Doe]],[[Jane Doe]]
^^^^^^^^^^^^^
. The file was created successfully, but structured variables may not be properly formatted. This usually happens when variable values contain unexpected types or when Obsidian's YAML processor encounters an issue. Check the console for more details about which variables caused the problem.
at mW.logError (plugin:quickadd:76:1652)
at eval (plugin:quickadd:23:6755)
at Array.forEach (<anonymous>)
at Bc.logError (plugin:quickadd:23:6742)
at Ds.postProcessFrontMatter (plugin:quickadd:39:8959)
at async Ds.createFileWithTemplate (plugin:quickadd:63:7576)
at async Ds.run (plugin:quickadd:76:4836)
at async Fe.onChooseTemplateType (plugin:quickadd:98:12000)
at async Fe.execute (plugin:quickadd:98:11739)
at async e.onChooseItem (plugin:quickadd:98:3346)Additional context
The setting Format template variables as proper peroperty types (Beta) is on.
The result is the same whether it's on or off, though.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working