jagregory / atom-pandoc-preview

Pandoc-powered Previewer for Atom
MIT License
14 stars 7 forks source link

MathJax support? #10

Closed dashed closed 9 years ago

dashed commented 10 years ago

Wondering if this is possible.

With options: -s -S --ascii --mathjax, I get the error:

Uncaught SecurityError: 
Access to 'cookie' is denied for this document. 
Cookies are disabled inside 'data:' URLs. 

Same error occurs with --self-contained.

Would there be a better way than the iframe src way as it is implemented?

jagregory commented 10 years ago

Do you see that with just --self-contained?

The alternative is to write to a temp file and point the src to that. I had a spike working of this before, but I didn't try it with mathjax.

On Tue, Mar 11, 2014 at 7:21 PM, Alberto Leal notifications@github.comwrote:

Wondering if this is possible.

With options: -s -S --ascii --mathjax, I get the error:

Uncaught SecurityError: Access to 'cookie' is denied for this document. Cookies are disabled inside 'data:' URLs.

Same error occurs with --self-contained.

Would there be a better way than the iframe src way as it is implemented?

Reply to this email directly or view it on GitHubhttps://github.com/jagregory/atom-pandoc-preview/issues/10 .

James Gregory

Tel: +61 (0) 411 619 513 Website: http://jagregory.com Twitter: @jagregory http://twitter.com/jagregory

dashed commented 10 years ago

With and without --self-contained.

You're restricted with what you can do in data URLs. The usual business of referencing file://... urls won't work either because of security concerns.