\2\3', :no_span_caps ], # 3+ uppercase caps
+ # [ /(\.\s)?\s?--\s?/, '\1—' ], # em dash
+ # [ /\s->\s/, ' → ' ], # right arrow
+ # [ /\s-\s/, ' – ' ], # en dash
+ # [ /(\d+) ?x ?(\d+)/, '\1×\2' ], # dimension sign
+ # [ /\b ?[(\[]TM[\])]/i, '™' ], # trademark
+ # [ /\b ?[(\[]R[\])]/i, '®' ], # registered
+ # [ /\b ?[(\[]C[\])]/i, '©' ] # copyright
]
H_ALGN_VALS = {
@@ -1010,7 +1010,7 @@ class RedCloth3 < String
def glyphs_textile( text, level = 0 )
if text !~ HASTAG_MATCH
- #pgl text
+ pgl text
footnote_ref text
else
codepre = 0
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 13fa262..6e1356b 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -219,6 +219,11 @@ class ApplicationHelperTest < HelperTestCase
assert_equal 'Dashes: ---
', textilizable('Dashes: ---')
end
+ def test_acronym
+ assert_equal 'This is an acronym: ACLU.
',
+ textilizable('This is an acronym: ACLU(American Civil Liberties Union).')
+ end
+
def test_footnotes
raw = <<-RAW
This is some text[1].