Bugs: Browse | Submit New | Admin

[#29626] Auto converted acronyms

Date:
2012-08-08 15:30
Priority:
3
Submitted By:
B Wright (intranation)
Assigned To:
Thomas Leitner (gettalong)
Category:
Converter
State:
Closed
Summary:
Auto converted acronyms

Detailed description
If one uses an email address with a string that looks like an acronym, and defines that acronym, the acronym is converted
inside the mailto link.

Example:

puts Kramdown::Document.new(<<EOF
* <NCH@example.com>

*[NCH]: National Clearing House
EOF
).to_html

outputs:

<ul>
  <li><a href="mailto:NCH@example.com">&lt;abbr title="National Clearing
House"&gt;NCH&lt;/abbr&gt;@example.com</a></li>
</ul>

which is wrong. The inner abbr element shouldn't be HTML encoded, or should not be parsed at all.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2012-08-10 20:11
Sender: Thomas Leitner

Fixed this by not obfuscating the text if it is not equal to
the email address.
Date: 2012-08-09 21:48
Sender: Thomas Leitner

Will have a look at it!

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2012-08-10 20:112012-08-10 20:11gettalong
status_idOpen2012-08-10 20:11gettalong
assigned_tonone2012-08-09 21:48gettalong
category_idNone2012-08-09 21:48gettalong