Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch latex export from markdown #191

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Spuriosity1
Copy link

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.

@fredriksy
Copy link

Will this be merged soon?

@oameye
Copy link

oameye commented Nov 22, 2023

@Spuriosity1 What is the status on this?

@Spuriosity1
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF Export to LaTeX broken after recent Obsidian update
3 participants