Add extra smartify test

This commit is contained in:
Pat Hawks 2017-11-12 11:52:18 -06:00
parent 9c7ef8f14e
commit 41312370a3
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
1 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ class TestFilters < JekyllUnitTest
)
end
should "convert not convert markdown to block HTML elements" do
assert_equal(
"#hashtag", # NOT "<h1>hashtag</h1>"
@filter.smartify("#hashtag")
)
end
should "escapes special characters when configured to do so" do
kramdown = make_filter_mock({ :kramdown => { :entity_output => :symbolic } })
assert_equal(