Suggestions for extracting new markdown...()
display out of dataview embed and directly into note text?
#1241
-
I would like to be able to put the output of the new Does anyone have suggestions for a nice way to do this? Conceptually nonsense but partially worked: I managed to get a "print-out" out of the dataviewjs embed and into the note content by making a blank inline dataview field and then using the "update" function from the MetaEdit community plugin to fill the field with the myInlineField::
markdownTable from most recent refresh
markdownTable from a few seconds ago
markdownTable from a few seconds before that
...
...
...
... Eeek! I commented out the MetaEdit code and deleted the extra repetitions of the table. Thanks in advance for your suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
This is the exact goal of #42, since doing this correctly is a tad involved. It's technically possible to write some DataviewJS which replaces itself with the markdown render of the query using the Obsidian API, which may work instead. As an alternative, you can use Templater to implement this for templated files. |
Beta Was this translation helpful? Give feedback.
-
This looks great but I don't understand how to do this while maintaining a variable for the current page. If I have to hardcode the page that limits the usefulness. Is there a way to do this while maintaining some sort of current page variable? |
Beta Was this translation helpful? Give feedback.
This is the exact goal of #42, since doing this correctly is a tad involved. It's technically possible to write some DataviewJS which replaces itself with the markdown render of the query using the Obsidian API, which may work instead.
As an alternative, you can use Templater to implement this for templated files.