Mercurial > hg > soundsoftware-site
comparison lib/redcloth3.rb @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b |
comparison
equal
deleted
inserted
replaced
35:67e8aef29de9 | 41:7f0e922c8982 |
---|---|
454 def pgl( text ) | 454 def pgl( text ) |
455 #GLYPHS.each do |re, resub, tog| | 455 #GLYPHS.each do |re, resub, tog| |
456 # next if tog and method( tog ).call | 456 # next if tog and method( tog ).call |
457 # text.gsub! re, resub | 457 # text.gsub! re, resub |
458 #end | 458 #end |
459 text.gsub!(/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/) do |m| | 459 text.gsub!(/\b([A-Z][A-Z0-9]{1,})\b(?:[(]([^)]*)[)])/) do |m| |
460 "<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>" | 460 "<acronym title=\"#{htmlesc $2}\">#{$1}</acronym>" |
461 end | 461 end |
462 end | 462 end |
463 | 463 |
464 # Parses Textile attribute lists and builds an HTML attribute string | 464 # Parses Textile attribute lists and builds an HTML attribute string |