flathub / io.typora.Typora

https://flathub.org/apps/details/io.typora.Typora
3 stars 5 forks source link

Question regarding pandoc and epub export #1

Open aaylnx opened 3 years ago

aaylnx commented 3 years ago

Thank you very much for packaging Typora for Flatpak. Greatly appreciated! I have a question. I often export markdown to epub, however I need to be able to customize the epub output. When I use the native version of pandoc, I can accomplish this by editing the epub.css file located in Ubuntu at /usr/share/pandoc/data/epub.css My problem is that I can't locate where this file is in the version of pandoc that is included with the Typora flatpak. Any ideas on where to find this so I can tweak it to my needs?

syco commented 3 years ago

pandoc --version from inside the flatpak returns this:

pandoc 2.11.2
Compiled with pandoc-types 1.22, texmath 0.12.0.3, skylighting 0.10.0.3,
citeproc 0.2, ipynb 0.1.0.1
User data directory: /home/syco/.var/app/io.typora.Typora/data/pandoc or /home/syco/.pandoc
Copyright (C) 2006-2020 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

Can you try to put that file in ~/.var/app/io.typora.Typora/data/pandoc/data/epub.css or maybe in ~/.var/app/io.typora.Typora/data/pandoc/epub.css?

aaylnx commented 3 years ago

Thanks very much for those suggestions. Unfortunately, putting epub.css in those directories does not alter the epub output. If you have any other suggestions, please let me know. Thanks!