spec/downterm/render_spec.rb in downterm-0.1.2 vs spec/downterm/render_spec.rb in downterm-0.1.3
- old
+ new
@@ -111,9 +111,28 @@
'11. Item 11',
].join("\n")
actual = markdown.render(md)
expect(actual).to eq(expected)
end
+
+ it 'is spaced properly when mixed with paragraphs' do
+ md = [
+ 'These are some items in a list:',
+ '',
+ '* Item 1',
+ '* Item 2',
+ '* Item 3',
+ '',
+ 'These are some more items in a list:',
+ '',
+ '* Item 1',
+ '* Item 2',
+ '* Item 3',
+ ].join("\n")
+ expected = md
+ actual = markdown.render(md)
+ expect(actual).to eq(expected)
+ end
end
describe 'code' do
it 'is rendered verbatim when inline' do
md = '`import antigravity`'