yoavram / markx

Markdown editor for scientific writing. Batteries included.
Other
319 stars 41 forks source link

Conversion to pdf not working in markx #30

Closed lsaravia closed 11 years ago

lsaravia commented 11 years ago

Conversion to pdf in http://markx.herokuapp.com is not working either with pandoc or with docverter, Loading the bibliography or not gives the same error.

When the P/D button is pressed the browser address change to

http://latex.aslushnikov.com/compile?url=undefined/view/markx.latex

Error: fetching url undefined/view/markx.latex Failed to fetch document

This is what I found in the error console: "Fecha: 22/02/13 14:33:06 Error: La codificación de caracteres del doucmento de texto plano no fue declarada. El documento se verá con basura en el texto en algunas configuraciones de navegadores si contiene caracteres fuera del rango US-ASCII. La codificación de caracteres necesita ser declarada en el protocolo de transferencia o el archivo necesita usar una marca de orden de byte como firma de codificación. Archivo Fuente: http://latex.aslushnikov.com/compile?url=undefined/view/markx.latex Línea: 0

In the case of local markx either with P or D the pdf is generated under /files but is not downloader by the browser.

I am using firefox 19.0 under linux ubuntu 12.04

yoavram commented 11 years ago
  1. Local - I think it's because of your popup blocker, I changed Markx to download files instead of poping them up, try it again?
  2. Hosted - I see the same problem in firefox 18. I'll try to fix it.
yoavram commented 11 years ago

Apparently window.location.origin is not supported in Firefox so I'll change it with window.location.protocol + "//" + window.location.host + ":" + window.location.port + "/"