|
|
|
@ -18,4 +18,9 @@ class EventsHelperTest < ActionView::TestCase
|
|
|
|
|
assert_equal '*ho* **h**,', to_markdown('<em>ho</em><strong> h</strong>,') |
|
|
|
|
assert_equal '*ho* **h**,', to_markdown('<i>ho</i><b> h</b>,') |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
test 'HTML titles to strong' do |
|
|
|
|
assert_equal '**Big**', to_markdown('<h1>Big</h1>,') |
|
|
|
|
assert_equal '**Big again**', to_markdown('<h2>Big again</h2>,') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|