Skip to content

Commit 178b322

Browse files
committed
h4 markdown test
1 parent 53b64e4 commit 178b322

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/lib/cfm_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'spec_helper'
2+
3+
RSpec.describe CFM::Markdown do
4+
it 'correctly renders #### as H4' do
5+
text = '#### my test is awesome'
6+
expect(CFM::Markdown.render(text)).not_to include('####')
7+
end
8+
9+
it 'doesnt render #### as H4 if there is a space in front' do
10+
text = ' #### this is not correct markdown'
11+
expect(CFM::Markdown.render(text)).to include('####')
12+
end
13+
end

0 commit comments

Comments
 (0)