Git Product home page Git Product logo

Comments (24)

mojavelinux avatar mojavelinux commented on July 19, 2024

To clarify, the version is 1.5.3-preview.2 (notice the hyphen). https://www.npmjs.com/package/asciidoctor.js

from docgist.

nawroth avatar nawroth commented on July 19, 2024

I'm on it.

from docgist.

nawroth avatar nawroth commented on July 19, 2024

There seems to be a difference in how attributes are handled. At least that's my guess because:

@Mogztter

from docgist.

mojavelinux avatar mojavelinux commented on July 19, 2024

from docgist.

nawroth avatar nawroth commented on July 19, 2024

Plese update here when there's a fix.

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

Just released a 1.5.3-preview.3.
This version should ⚑ this πŸ›

from docgist.

mojavelinux avatar mojavelinux commented on July 19, 2024

from docgist.

nawroth avatar nawroth commented on July 19, 2024

The dist folder wasn't updated!

from docgist.

mojavelinux avatar mojavelinux commented on July 19, 2024

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

Damn!
Yes manual releases are prone to error... we should definitely automate the
process! Automate all the things!!!
Le 8 nov. 2015 1:01 PM, "Dan Allen" [email protected] a Γ©crit :

That's definitely something we should automate.

β€”
Reply to this email directly or view it on GitHub
#21 (comment).

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

1.5.3-preview.4 is out!

from docgist.

nawroth avatar nawroth commented on July 19, 2024

I'm still seeing the same issue.
You can try it out at http://nawroth.github.io/docgist/

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

@nawroth With Opal 0.8.0 doc.attributes.map is empty (for an unknown reason) and you must use doc.attributes.smap instead. Or you can use doc.$attrs('name') to stay out of Opal's "internal".

from docgist.

nawroth avatar nawroth commented on July 19, 2024

doc.attributes.smap works. One difference I noticed is that running with parse_header_only=true will only return attributes that are actually in the document header, while it previously didn't mind a blank line between title and document attributes.

So I fixed the examples to work with it, for example:

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

One difference I noticed is that running with parse_header_only=true will only return attributes that are actually in the document header, while it previously didn't mind a blank line between title and document attributes.

I think this is related to asciidoctor/asciidoctor.js#95 (comment)

doc.attributes.smap works.

Yes but you should use Hash's public methods instead: https://github.com/opal/opal/blob/master/opal/corelib/hash.rb

smap is an internal property and Opal can decide to modify it or remove it in future version 😞

from docgist.

nawroth avatar nawroth commented on July 19, 2024

@Mogztter I'll fix that, thanks for the links. The more important point is that 1.5.3 seems to work fine with DocGist now. πŸ‘

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

Yeah, thanks for your great work πŸ˜ƒ

from docgist.

nawroth avatar nawroth commented on July 19, 2024

Updated it to use $has_key? and $fetch.

Are there any unresolved issues with the previews or will 1.5.3 be out soon?

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

We're still discussing an "issue" on attributes here and here but I think the behavior is the same in Asciidoctor core (Ruby) and Asciidoctor.js... Hopefully @mojavelinux will clear up our questions and give us the green light to proceed.

So 1.5.3 should be out pretty soon!

from docgist.

nawroth avatar nawroth commented on July 19, 2024

I couldn't find any more problems, so I pushed my changes + a lot around syntax highlighting to http://gist.asciidoctor.org/

Will do another update if there are any changes in the final 1.5.3.

from docgist.

mojavelinux avatar mojavelinux commented on July 19, 2024

it previously didn't mind a blank line between title and document attributes.

We should be strict about not permitting blank lines in the header, IMO.

from docgist.

nawroth avatar nawroth commented on July 19, 2024

@mojavelinux Agreed.

from docgist.

mojavelinux avatar mojavelinux commented on July 19, 2024

That's great news that you got it all working. Obviously, we still need to improve the usability of the APIs around document-level attributes and locking attributes, but that's for 1.6.0. What's important is that we have some really nice (and clear) use cases to study now. As far as 1.5.3 is concerned, if we understand how to work with what is there, then we are ready for release.

from docgist.

ggrossetie avatar ggrossetie commented on July 19, 2024

Or better upgrade to https://github.com/asciidoctor/asciidoctor.js/releases/tag/v1.5.9

from docgist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.