Is it possible in Polyglot (.NET Interactive) notebook in VS Code for a code cell to create or display a markdown output?
let myMd = "## Title\nText"
myMd |> displayAsMarkdown
Someone seems to be able to do this with mermaid: Display Mermaid diagram from C# variable in Polyglot notebook Someone else uses a Python library to format programmatic markdown: https://data-dive.com/jupyterlab-markdown-cells-include-variables/#:~:text=Surprisingly%2C%20Jupyter%20Notebooks%20do%20not,easy%20to%20install%20and%20configure.
I'd like to use the full power of the Notebook markdown including LaTex mathematics. Since the capability to render markdown is there it seems perverse that it wouldn't be accessible. I can't find any examples or documentation.
The Kernel.Root.SendAsync(new SubmitCode("markdown", "My markdown text"))
route doesn't seem to work.
A hacky solution, inspired by: How can I mix LaTeX in with Markdown?
I use MarkdownSharp and MathJax to synthesize my desired behaviour: