Closed jaycunningham-8451 closed 3 years ago
I think I've had issues with one or two of the Pandoc command-line options that take optional URL arguments in the past. I think I suspected that it might be related to the document being in Pandoc's JSON format within Codebraid when these arguments are applied, but never tracked down exactly what was happening.
You might try something like this (untested):
codebraid pandoc -t markdown index.md | pandoc -f markdown --mathjax=$MJPATH -t revealjs -s -i -o docs/index.html
Basically, use codebraid to produce markdown, then pipe through pandoc as normal.
I think this can be closed. Running it through Pandoc doesn't cause an error, so I missed the fact that it doesn't actually render the equations at all. I don't know if this is a Pandoc issue or (more likely) an I'm-doing-it-wrong issue, but either way I suspect it's not codebraid-related.
Sorry for the trouble.
I'm trying to use codebraid with a standalone MathJax installation. Currently I can run Pandoc without any errors:
where
MJPATH
is the path to MathJax.js in a MathJax@2 installation. But if I try to run essentially the same line with the same markdown file through codebraid:I get this error:
It doesn't seem to make a difference what's actually in the markdown file. Using
--mathjax
without a path works just fine, though, so that makes it a somewhat academic exercise (as grabbing it from the CDN works well enough for my use case).I'm using:
Python 3.8.7 macOS 10.15.7 codebraid 0.5.0 MathJax 2.7.9 Pandoc 2.13