Closed claremacrae closed 3 weeks ago
No, the markdown spec does not allow that. The markdown builder generates an actual markdown string which is then passed to Obsidians markdown renderer.
Ah right, OK thanks.
Is there a way to use js-engine to build raw HTML then?
It's JavaScript, so you can use the normal web APIs. Global Obsidian helper functions and prototype extensions should work as well.
Things exported under the obsidian namespace should be available via the obsidian
object, so e.g. new obsidian.Notice("hello")
Ah well, thank you very much for the replies.
The only way I see to get code blocks into tables would be to use HTML tables, but then the codeblocks would need to be created with HTML as well and markdown post processors wouldn't run on those.
Understood. I have no idea how dataview manages it, but it does. So that is always available as a fall-back.
Any chance you could change this from completed to won’t fix, though please, for transparency.
I have been using DataView to generate tables that contain code blocks. The code blocks are of course Tasks searches.
I am hoping to replace this with using js-engine to generate tables with code blocks.
Table with single-line cells
This
js-engine
code block creates a trivial table:Attempt at creating table with a code block in
I've tried various iterations of this
js-engine
code block to create a table with a code block in:They all seem to display some of the code block text outside the table...
The question!
Is it currently possible to put (rendered) code blocks inside js-engine tables please?