Evaluate Code Blocks in CLI

Use case or problem

The problem is that code blocks are not evaluated on the Obsidian command line. See CLI: evaluating code blocks? - Help - Obsidian Forum for an example. More generally the problem is that I’d like to get the markdown output that various different plugins (e.g. dataview, tasks) produce inside Obsidian and feed it into other software outside Obsidian for use in different scripts and workflows.

Proposed solution

Eitherobsidian read file="cli test"just evaluates any code blocks and shows the markdown as would be rendered within obsidian itself, or an additional flag could be used so that you can have the current behaviour or the evaluating behaviour as preferred.

++

Similar to code blocks (and seems overlapping so if it’s okay appending here), I’d like the option for the CLI to emit the “rendered” or “reading view” of the page. This would expand only rendering code blocks to also include other page WYSIWYG objects such as quotes.=

So present:

$ obsidian read file="test.md"
![[2026Jul08Wed#^93012f|Jul08]]

… could instead report like:

$ obsidian read file="test.md" --rendered
> This is a test line to see if CLI rendering works.