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

Error in $: Failed reading: not a valid json value #45

Closed
wikiti opened this issue Jan 24, 2020 · 5 comments
Closed

Error in $: Failed reading: not a valid json value #45

wikiti opened this issue Jan 24, 2020 · 5 comments

Comments

@wikiti
Copy link

wikiti commented Jan 24, 2020

Hello,

First of all, nice suite of plugins.

I've tried to build the demo files (using the Makefile), and I keep receiving the following error, without anything built:

Error running filter pandoc-eqnos:
Error in $: Failed reading: not a valid json value

I've tried more simple files, like this one, and it still throws the same error:

# SAMPLE.md

$$ y = mx + b $$ {#eq:line}

Check Equation {@eq:line}.
> pandoc --filter pandoc-eqnos -o sample.html SAMPLE.md
Error running filter pandoc-eqnos:
Error in $: Failed reading: not a valid json value

Looks like if I build a .pdf instead of a .html file, it works.

Here are my tool versions:

> pandoc --version
pandoc 2.9.1.1
Compiled with pandoc-types 1.20, texmath 0.12, skylighting 0.8.3
Default user data directory: /home/dani/.local/share/pandoc or /home/dani/.pandoc
Copyright (C) 2006-2019 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.

> pandoc-eqnos --version
pandoc-eqnos 2.1.1

pandoc-fignos and pandog-tablenos works tho.

@fuhrmanator
Copy link

I saw this error once in another filter because warnings (or status messages) were going to stdout (which must only be json). Maybe enabling full debugging (verbose) in pandoc will give some hints?

@tomduck
Copy link
Owner

tomduck commented Jul 30, 2020

Thank you for your report and sorry for the long wait. Is this still a problem for you? I have not been able to reproduce this issue, even when I use the markdown and command you supplied.

I don't recognize your shell prompt (>), although perhaps you have customized it. I tried your test under a variety of shells and it worked.

Tom

@tomduck
Copy link
Owner

tomduck commented Jul 30, 2020

Note: pandoc-eqnos 2.2.0 is now released. So, you may wish to test against that.

@tomduck
Copy link
Owner

tomduck commented Jul 30, 2020

There is a similar Issue filed against pandoc-tablenos: tomduck/pandoc-tablenos#19

@tomduck
Copy link
Owner

tomduck commented Jul 30, 2020

The problem is now fixed. Please upgrade pandoc-xnos to version 2.4.1. Thank you for reporting this Issue. --Tom

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

No branches or pull requests

3 participants