Open ansley257 opened 1 year ago
Not sure if I was having the same problem, but wanted to fix using canvas to link. That line of code did seem to be the one, I changed this in the compiled plugin code
case "Canvas" /* Canvas */:
return renderMultiFields(rawValue, (item) => item ? `"${item}"` : "");
This fixes it for me
Hi there,
Canvas links are writing incorrectly to the md files and rendering incorrectly in a different way in the new Properties view. I have a global file class defined (pasted below), which has an 'updates with links in canvas' field, called 'MoCs'. The canvas I'm using is my main MoC canvas, with other sub-MoC canvases inside of it. I have two rules in place for a link to show up, the edge must inbound, and the source node must be blue (the preconfigured light blue). I haven't seen any other issues about this, so my best guess is it may have something to do with the new release, which had a lot of changes to properties.
Expected Behavior
When you connect a blue canvas note outbound to another canvas note, the blue canvas note should appear in the properties of the inbound side canvas note, with the correct format:
Actual Behavior
When you connect a blue canvas note outbound to another canvas note, the blue canvas appears in the properties of the inbound side canvas note, but is not formatted correctly. This is the format the way things are in the .md file itself:
but when the properties view renders this it comes out as"
Things I've tried:
I'm not able to completely figure out what ${item} should compute to, but I don't think the value is modified again after this.
Specs:
Obsidian v1.4.4 (installer 1.3.7) macOS Ventura v13.4 metadatamenu v0.5.1 (current)
Files
global fileClass
metadata menu configs saved to data.json
core-plugins:
"file-explorer", "global-search", "switcher", "graph", "backlink", "canvas", "outgoing-link", "tag-pane", "properties", "page-preview", "note-composer", "command-palette", "slash-command", "editor-status", "bookmarks", "markdown-importer", "outline", "word-count", "file-recovery", "sync"
Other plugins:
actions-uri
heatmap-calendar obsidian-memos cmdr metadata-menu
quickadd colored-tags obsidian-columns templater-obsidian dataview
obsidian-git dbfolder
obsidian-linter