An abbreviation containing brackets (curly, square, or parens) will cause the following error in some situations:
NoMethodError: undefined method `empty?' for nil:NilClass
from /usr/local/lib64/ruby/gems/1.8/gems/kramdown-0.14.0/lib/kramdown/converter/html.rb:331:in `convert_abbreviation'
...
I've found the following usage to generate this error...
In a link:
"[(X)HTML](http://en.wikipedia.org/wiki/Xhtml)\n\n*[(X)HTML]: (eXtensible) HyperText Markup Language"
As the first item in a list:
"* (X)HTML test \n* line two\n\n*[(X)HTML]: (eXtensible) HyperText Markup Language"
But strangely _no_ problem if it's not the first item:
"* test (X)HTML\n\n*[(X)HTML]: (eXtensible) HyperText Markup Language"
I've been unable to work around this by escaping the bracket nor by using HTML character codes. |