obsidian-pandoc icon indicating copy to clipboard operation
obsidian-pandoc copied to clipboard

Patch latex export from markdown

Open Spuriosity1 opened this issue 1 year ago • 3 comments

Obsidian's syntax for align blocks in display math confuses pdflatex due to the double math mode. This PR adds an ad-hoc filter to the pandoc invocation that allows for exporting latex direct from the markdown source, even when one has syntax

$$
\begin{align}
\sin(x)\\\cos(c)
\end{align}
$$

This does not completely resolve #188 (export from HTML source is still broken), but it at least adds a passable workaround.

Spuriosity1 avatar Jul 26 '23 11:07 Spuriosity1

Will this be merged soon?

fredriksy avatar Oct 11 '23 01:10 fredriksy

@Spuriosity1 What is the status on this?

oameye avatar Nov 22 '23 11:11 oameye

It's a hacky workaround, but it's functional for exporting .md -> .tex. One could very well question its value though - it's probably easier to simply run pandoc yourself on the raw markdown file, with a custom filter. The repo owner has not said anything about this PR so far, so it seems like it might be time for a new fork.

Spuriosity1 avatar Nov 22 '23 18:11 Spuriosity1