Closed ggrossetie closed 7 years ago
Thank you very much! I tried your changes but it produces
Error: Unable to automatically detect the JavaScript platform, please configure Asciidoctor.js: `Asciidoctor({runtime: {platform: 'node'}})`
I wrote a tiny test which will probably make it easier for you to reproduce this. Just put the files attached + the asciidoctor.js files into the same directoy.
Change test.txt
to test.html
and worker.txt
to worker.js
, Fire up a local webserver and load 'test.html' in your browser.
That should reproduce the same error message in the browser's debugging console.
@Mogztter I just noticed that you already discovered the same problem.
BTW, Asciidoctor should use XMLHttpRequest
to include files within Brackets. The rendering code does not have direct access to the filesystem.
Thank you very much! I tried your changes but it produces Error: Unable to automatically detect the JavaScript platform, please configure Asciidoctor.js:
Asciidoctor({runtime: {platform: 'node'}})
I just noticed that you already discovered the same problem.
Yes there's a bug in Asciidoctor.js, I will release a 1.5.5-5 to resolve this issue. Once this is fixed, you should be able to configure Asciidoctor.js:
Asciidoctor({runtime: {platform: 'browser'}})
BTW, Asciidoctor should use XMLHttpRequest to include files within Brackets. The rendering code does not have direct access to the filesystem.
Ok.
Some pending issues:
diagram-extension.js
,data-line-extension.js
) are disabled because Opal is not available