obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

Markdown support in the summary view

Open ganesshkumar opened this issue 2 years ago • 6 comments

Render the output of the summary view with markdown support.

searchType: dvField
searchTarget: weight
folder: /journals
startDate: 2021-11-01
endDate: 2021-11-30
summary:
    template: "Average : **{{average()}}** kg \n Max: {{max()}} kg"

The above snippet with output something like

Actual output: Average: **xx** kg Max: yy Kg

Expected: output Average: xx kg Max: yy Kg

while the \n is parsed and supported, the markdown bold is not being supported.

Ask: Can we add support for markdown in the output of the summary view?

ganesshkumar avatar Nov 18 '21 03:11 ganesshkumar

A quick way to do flexible text styling from my side is to allow HTML tags in the summary input. Is that OK for you?

pyrochlore avatar Nov 22 '21 08:11 pyrochlore

Not an urgent requirement. Markdown or HTML, whichever is ideal can be used. I can also help with the code change if you point me in the right direction!

ganesshkumar avatar Nov 23 '21 04:11 ganesshkumar

The code and the related example was committed to branch fix_1.10.9. Will be release in few days.

pyrochlore avatar Nov 27 '21 06:11 pyrochlore

Thanks for picking this up and checking it in so quick!

ganesshkumar avatar Nov 27 '21 06:11 ganesshkumar

Hey! Did this ever get resolved? I'm having the same issue.

Vworri avatar Jul 02 '23 16:07 Vworri

First of all, thanks for Obsidian Tracker!

I miss being able to use wikilinks on the summary. Markdown support would probably fix it?

For example:

template: "[[Project Foobar]]: {{currentStreak()}}"

Currently I have to place it on a different line, which gets messy.

rc2dev avatar Mar 27 '24 17:03 rc2dev