This is markdown flavour that work nicely with Python/R, basicially an superset of pandoc (you can use VSCode to write code or even write text directly as markdown in indexed folder in Obsidian/Devonthink ); You could use there nice latex templates (however sometimes it needs a bit of tweaking), I courrently adapted a template and write my PhD thesis using this workflow