heatmap-calendar-obsidian
heatmap-calendar-obsidian copied to clipboard
Hover preview is not working with file names that contain a space character
Here is the part of my script where I setup the hover preview:
...
data.entries.push(
{
date: page.started,
intensity: 1,
content: await dv.span(`[](${page.file.name})`) // not working as expected
}
)
...
Here is the result with a file named Europe
:

Here is the result with a file named Europe Test
:

Splitting the file name by a space character solves the rendering issue, but, naturally, prevents the Heatmap from displaying the file contents.
await dv.span(`[](${page.file.name.split(" ")["0"]})`)
