Hi all,
Is there any simple way to pipe note text through some bash script before it’s rendered in the preview?
I have notes that include a lot of mathematics and diagrams, so I have various Pandoc scripts and filters that expand macros out into standard Mathjax-compatible commands, convert tex environments to divs, replace tikzcd diagrams with SVG, etc. As a result, the default Obsidian preview isn’t pretty, since the Mathjax config isn’t easily exposed, the Mathjax plugin has limited macro functionality, and even then it’s rendering the “untransformed” version of the note. Any ideas?
(Note: I am currently working around this by just opening the note externally in vim and doing transformation commands and previews there, it’s just a bit clunky.)