New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No or invalid attributes found in IAL/ALD content – for simple {::comment} #42
Comments
forgot to mention: This was no problem in kramdown 0.14.2. |
Thanks for reporting! There should definitely not be a warning in this case. |
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. |
Here is my little test case…
(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 |
Yup, this fixed it nicely. ✅ @cabo : Thank you .. |
Is now fixed. |
test.md
{::comment} abcdefghijklmnopqrstuvwxyz 0123456789 {:/comment} # TEST
Executing kramdown results in:
The text was updated successfully, but these errors were encountered: