Coder Social home page Coder Social logo

Comments (6)

DHB avatar DHB commented on August 30, 2024

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

from kramdown.

gettalong avatar gettalong commented on August 30, 2024

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

from kramdown.

DHB avatar DHB commented on August 30, 2024

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.

from kramdown.

cabo avatar cabo commented on August 30, 2024

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

from kramdown.

DHB avatar DHB commented on August 30, 2024

Yup, this fixed it nicely. ✅

@cabo : Thank you ..

from kramdown.

gettalong avatar gettalong commented on August 30, 2024

Is now fixed.

from kramdown.

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.