You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create TOC (table of content) from a result from a Tasks plugin. The result is grouped - it means that it has sections. I made a code for extracting @context from my tasks like:
```tasks
description includes @
group by function task.description.match(/@[^\s)\.,]+/)```
that will render result divided into sections. I tried dataviewjs to obtain the sections:
but the variable content does not contains rendered text.
So I tried put the code 1 into dv.paragraph('```tasks' + query + '```'). It render the output correctly but I need to return the resulted markdown text and I am not able to do it.
Is it possible to obtain the result from rendered element with this codeblock?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create TOC (table of content) from a result from a Tasks plugin. The result is grouped - it means that it has sections. I made a code for extracting @context from my tasks like:
that will render result divided into sections. I tried dataviewjs to obtain the sections:
but the variable content does not contains rendered text.
So I tried put the code 1 into
dv.paragraph('```tasks' + query + '```')
. It render the output correctly but I need to return the resulted markdown text and I am not able to do it.Is it possible to obtain the result from rendered element with this codeblock?
Beta Was this translation helpful? Give feedback.
All reactions