Replies: 1 comment
-
It seems that we need to escape the backticks I guess this must be due to template literals, but I don't know because I just learned this now because I'm a C++ developer trying to write a dv.view script and all this browser stuff scares me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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