Closed CrisFavero closed 6 years ago
I forgot to upgrade pandoc in the docker file. For now, try changing this line Line 10 to this:
RUN apt-get install build-essential context -y
RUN wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb
RUN dpkg -i pandoc-2.2.1-1-amd64.deb
That should install the latest pandoc version which allows the lua filter. Will have to test more.
@mszep do you still want to support pandoc 1?
@nitrocode I'm happy to incorporate your solution into the dockerfile to make sure we have a recent enough version of pandoc, provided it has been shown to work :-)
Worth noting while the docker file is getting updated doing apt-get update
and apt-get install
on two different lines is considered bad practice in Docker as the caching layer will never execute the apt-get update
again
I made those changes and seems to produce the expected output for the files.
Thanks @marioatlp!
@mszep @CrisFavero I have this same issue still, even after using the most recent version of this repo.
pandoc: unrecognized option `--lua-filter=pdc-links-target-blank.lua'
Try pandoc --help for more information.
Makefile:21: recipe for target 'html' failed
make: *** [html] Error 2
@DanielGGordon to confirm, are you using the dockerized version?
If not, what version of pandoc are you using? (you can find that by doing pandoc --version
on the command line)
$ pandoc --version
pandoc 1.16.0.2
Compiled with texmath 0.8.4.1, highlighting-kate 0.6.1.
I am having trouble even running docker on my Ubuntu VM, it looks like I need a different version of linux (Bionic, Artful, Xenial, or Trusty)
Yes, this fix was specific to the docker container. However the root cause is the same, you need to be on the newer versions of pandoc on your system for this repo to work.
On Mon, Jul 9, 2018 at 12:52 PM Daniel Gordon notifications@github.com wrote:
$ pandoc --version pandoc 1.16.0.2 Compiled with texmath 0.8.4.1, highlighting-kate 0.6.1.
I am having trouble even running docker on my Ubuntu VM, it looks like I need a different version of linux (Bionic, Artful, Xenial, or Trusty)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mszep/pandoc_resume/issues/44#issuecomment-403545926, or mute the thread https://github.com/notifications/unsubscribe-auth/AAU7yVprvl3lxrnTG86SmpCZd8lVfFCbks5uE4pSgaJpZM4T7u95 .
So maybe this is a stupid question, but how do I do that? I did sudo apt install pandoc context
and sudo apt-get update
before that. Do I need a specific distribution of linux to get the version of pandoc I need? Trying to do this with Ubuntu
@DanielGGordon install directly from the deb
file from the pandoc
releases page.
wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb && \
sudo dpkg -i pandoc-2.2.1-1-amd64.deb
The following error occurs when doing docker-compose up
Expected Behavior
Actual Behavior
Steps to reproduce the behavior
docker-compose up
Versions
Pandoc and context versions
app@bb8bb6360050:~/resume$ cat /etc/*-release