jez / pandoc-sidenote

Convert Pandoc Markdown-style footnotes into sidenotes
MIT License
136 stars 17 forks source link

Support for arm64, Pandoc >=2.12 #24

Open tyfried opened 1 year ago

tyfried commented 1 year ago

What would it take to create an arm64 executable of this filter? IE something that will run on apple silicon? I am a haskell novice and can't seem to get a handle on this question.

Backstory: I was previously using this filter (which is awesome by the way!) in a project which I was developing on an intel-based mac, and I recently made the jump to apple silicon. Unfortunately this caused Pandoc and this filter to break. One solution is to use the Rosetta emulator, but I'm using docker and when I tried this approach I discovered that running Pandoc in a container using rosetta emulation is prohibitively slow.

I was able to solve the speed issue by ditching emulation and bumping my Pandoc version to 2.12, the earliest release that supports arm64, but I still have the problem that I can't use this filter. Any ideas? Since it's possible for Pandoc to support arm64, it should in theory also be possible here. But for example when I tried to build a Pandoc 2.1 executable from source using stack on my apple silicon machine, it still created an amd64 binary, so I'm assuming the same is true here. Please let me know your thoughts.

Also, on a related note, what it would take to bump support for this filter to Pandoc 2.12 or later? You mention in the README about updating the stack build manifest...I'm assuming that refers to either stack.yaml or package.yaml, but what changes need to be made?

alexkreidler commented 1 year ago

I re-built this with the latest GHC and pandoc-types and it works with my Pandoc 3.0 on Ubuntu, except not when I add pandoc-citeproc.

p3palazzo commented 1 year ago

With pandoc 3.0 you have to use --citeproc rather than --filter=pandoc-citeproc.