Plugin: render-code
For each code element (CodeBlock/CodeInline) do you want the page to display the code, the result of running/rendering the code, or both? You can define defaults for each language, and you can override them in a specific code element's info string.
e.g. mermaid result, to render a diagram from Mermaid code, and show the result but not the code
e.g. py result, to run your Python code and show only the result.
e.g. py code is the same as just saying py.
e.g. py code <-> ast, to show your code and its AST side-by-side, with various cross-linked helpfulness (e.g. highlighting and descriptions) if you hover or click on either side.
e.g. py code <-> result, to show your code and its result side-by-side.
e.g. py code ; result, to show your code as a block, above a different block for its result.
e.g. py ▶︎code ; result, for the same thing but with the code wrapped in a (details, summary) that is collapsed by default.
Status
✽ Partly implemented ✽