Closed numenic closed 9 years ago
See #1847
@mpickering, given the number of queries we get about this issue, we might want to reconsider the decision to use the protocol-relative URL in the default template.
This was added in response to jgm/pandoc-templates#67 (which is
mistakenly still open). But I think we probably optimized for the wrong
use case. It is probably more common for people to want to view files
locally in the browser than serve them on https. In any case, whichever
default we use, the other setting is easy to specify on the command line
with --mathjax
.
I was thinking the same but I couldn't comment how useful people found the change. It seems like http
or https
would be a better default with a note in the README.
I don't see any downside to defaulting to https://cdn.mathjax.org
.
It will work from a document viewed via http:, https: and local file:.
IIUC the only reason the protocol-relative form was once popular is an optimization to avoid TLS overhead for people that "didn't ask for it", but the overhead has reduced, encrypting everything is a Good Thing so it's going out of fashion [see update http://www.paulirish.com/2010/the-protocol-relative-url/].
More importantly, a default where file:// works seems clearly better to me than a default where http:// is marginally faster. Power users can always give an explicit URL but defaults should Just Work.
Hello,
latest release installed using cabal.
Create a "test.pdc" file:
Call pandoc using
mathjax
andstandalone
params:The mathjax address is not properly called. The equation is thus not rendered at all in the browser:
Adding "http:" to the beginning of
src
fix the issue