Login  Register

Re: Upgrading Asciidoctor.js to the latest version of Asciidoctor

Posted by mojavelinux on Oct 06, 2013; 9:52am
URL: https://discuss.asciidoctor.org/Upgrading-Asciidoctor-js-to-the-latest-version-of-Asciidoctor-tp636p726.html

Guillaume,

Is your 0.1.4 branch on GitHub the same as what you are compiling locally? Let me know if / when they are synced up and I'll follow along on my side to help you work through the issues.

One of the major changes that has to happen before Asciidoctor will run properly is to change the endline handling, as I mentioned in the comments of the umbrella issue. I may need to make that change because it affects how most of the processor works and will take some trial and error even with memory of developing the code I'm touching.

-Dan


On Tue, Sep 24, 2013 at 5:08 PM, ggrossetie [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I copied the new html5 erb templates.

The templates below make the Opal compiler angy :
lib/asciidoctor/backends/html5/block_listing.opalerb
lib/asciidoctor/backends/html5/block_video.opalerb
lib/asciidoctor/backends/html5/inline_image.opalerb
lib/asciidoctor/backends/html5/section.opalerb

"backslash must appear before newline" [1]. Maybe someone is familiar with this error ?

I am now stuck with a Javascript error when running Asciidoctor.js :

Uncaught TypeError: Cannot call method '$[]' of undefined asciidoctor.js:2181
def.$lock_in_subs asciidoctor.js:2181
Lexer.constructor.$next_block asciidoctor.js:4352
Lexer.constructor.$next_section asciidoctor.js:3875
Lexer.constructor.$parse

default_subs = $scope.SUBS is undefined and the $scope is initialized with $scope = AbstractBlock._scope

The SUBS constants from Substituters are not loaded in the "scope" but I don't know why... ideas ?


Guillaume.
[1] https://github.com/opal/opal/blob/master/lib/opal/lexer.rb#L582


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Upgrading-Asciidoctor-js-to-the-latest-version-of-Asciidoctor-tp636p658.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | http://google.com/profiles/dan.j.allen