gpoore
For the LaTeX case, I created PythonTeX (https://github.com/gpoore/pythontex) years ago, but haven't done much with it recently.
In principle, it should be possible to create a PDF preview with proper SyncTeX support for synchronizing LaTeX source and PDF preview locations, but that gets complicated when Pandoc+LaTeX generate the PDF. It may be best to leave LaTeX-PDF previews to dedicated LaTeX previewers that don't involve Pandoc.
[1]: Examples and animations: https://codebraid.org/presentations/scipy2022/. Installation for VS Code: https://marketplace.visualstudio.com/items?itemName=gpoore.c.... Installation for VSCodium: https://open-vsx.org/extension/gpoore/codebraid-preview.
Show HN: Codebraid Preview for VS Code: Pandoc Preview with Jupyter Kernels
https://marketplace.visualstudio.com/items?itemName=gpoore.codebraid-preview
I've been frustrated by markdown previews that don't support all the features of Pandoc Markdown, so I created a VS Code extension that uses Pandoc itself to create the preview. This includes full bidirectional scroll sync and math support via KaTeX.This also includes support for Codebraid, which can execute code blocks and inline code in Pandoc Markdown to embed code output. Code can be...
Show HN: Codebraid Preview for VS Code: Pandoc Preview with Jupyter Kernels
https://marketplace.visualstudio.com/items?itemName=gpoore.codebraid-preview
I've been frustrated by markdown previews that don't support all the features of Pandoc Markdown, so I created a VS Code extension that uses Pandoc itself to create the preview. This includes full bidirectional scroll sync and math support via KaTeX.This also includes support for Codebraid, which can execute code blocks and inline code in Pandoc Markdown to embed code output. Code can be...