Skip to content

No or invalid attributes found in IAL/ALD content – for simple {::comment} #42

Closed

Description

@DHB
$ ruby --version && gem --version && bundle --version
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
2.0.3
Bundler version 1.3.4
$ gem list --local kr

*** LOCAL GEMS ***

kramdown (1.0.1)

test.md

{::comment}
abcdefghijklmnopqrstuvwxyz 0123456789                                                     
{:/comment}

# TEST

Executing kramdown results in:

$ kramdown test.md   > test.html
Warning: No or invalid attributes found in IAL/ALD content:

Activity

  1. DHB commented on Mar 20, 2013

    @DHB
    Author

    forgot to mention: This was no problem in kramdown 0.14.2.

  2. gettalong commented on Mar 20, 2013

    @gettalong
    Owner

    Thanks for reporting! There should definitely not be a warning in this case.

  3. DHB commented on Mar 20, 2013

    @DHB
    Author

    This is low priority - No real rush or urgency from my side. I also forgot to say thank you for all your efforts and for this wonderful gem!! Danke.

  4. cabo commented on Apr 13, 2013

    @cabo
    Contributor

    Here is my little test case…

    $ echo '{::nomarkdown}{:/nomarkdown}' | kramdown >/dev/null
    Warning: No or invalid attributes found in IAL/ALD content: 
    

    (Users of kramdown-rfc2629 get this around five times for every invocation…)

    Fix:

    --- kramdown-1.0.1/lib/kramdown/parser/kramdown/extensions.rb~
    +++ kramdown-1.0.1/lib/kramdown/parser/kramdown/extensions.rb
    @@ -16,6 +16,7 @@
           # Parse the string +str+ and extract all attributes and add all found attributes to the hash
           # +opts+.
           def parse_attribute_list(str, opts)
    +        return if str == ''
             attrs = str.scan(ALD_TYPE_ANY)
             attrs.each do |key, sep, val, ref, id_and_or_class, _, _|
               if ref
  5. DHB commented on Apr 13, 2013

    @DHB
    Author

    Yup, this fixed it nicely. ✅

    @cabo : Thank you ..

  6. gettalong commented on Apr 20, 2013

    @gettalong
    Owner

    Is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions