Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

pandoc-eqnos filter breaks syncing #446

Closed
mrkwjc opened this issue Dec 17, 2018 · 2 comments
Closed

pandoc-eqnos filter breaks syncing #446

mrkwjc opened this issue Dec 17, 2018 · 2 comments

Comments

@mrkwjc
Copy link

mrkwjc commented Dec 17, 2018

Hi!

I'd like to report that the preview syncing is not working when using pandoc renderer with pandoc-eqnos filter and with math rendering activated. Turning off the math rendering restores syncing.

I tried switching some MPP options, i tried also --standalone pandoc option but nothing helped. Any ideas?

Example: m.txt

Regards,
Marek

@lierdakil
Copy link
Collaborator

Hi. Syncing with pandoc is at best anemic currently, and at worst completely broken. The reason is straightforward, pandoc doesn't report any meaningful source location information, so we have to rely on brittle heuristics. So frankly the fact it's broken with third-party filters is no surprise at all.

There have been talk of adding something like source maps to pandoc, but nothing has been done yet. I might eventually try my hand at this myself, but, one, there's no guarantee my code will get into pandoc, and two, filters would still be a problem in any system I can think of at the moment.

So yeah... Not much can be done about this currently, at least not quickly.

For the purpose of bookkeeping, this is a duplicate of #106

@mrkwjc
Copy link
Author

mrkwjc commented Dec 18, 2018

Thank you for this comprehensive answer despite the lack of good news. I hope however the problem will be solved in the future. Working preview would be very nice because pandoc along with the numbering filters is a great tool for scientific writing...

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

No branches or pull requests

2 participants