heatmap-calendar-obsidian icon indicating copy to clipboard operation
heatmap-calendar-obsidian copied to clipboard

Hover preview is not working with file names that contain a space character

Open vadimtrifonov opened this issue 2 years ago • 0 comments

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:

Screen Shot 2022-09-23 at 17 55 29

Here is the result with a file named Europe Test:

Screen Shot 2022-09-23 at 17 57 47

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"]})`)
Screen Shot 2022-09-23 at 18 00 23

vadimtrifonov avatar Sep 23 '22 08:09 vadimtrifonov