Permalink
Browse files

separate reference links with 2 blank lines

  • Loading branch information...
1 parent 5934d32 commit 9254deb865a2eae6e0b73cbfbb31eeb3bf13ea86 @mislav committed Jul 17, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/remark.rb
  2. +2 −2 spec/remark_spec.rb
View
@@ -8,7 +8,7 @@ def initialize(source, options = {})
end
def to_markdown
- remark_block(scope) + (inline_links?? '' : "\n\n" + output_reference_links)
+ remark_block(scope) + (inline_links?? '' : "\n\n\n" + output_reference_links)
end
def scope
View
@@ -129,9 +129,9 @@ def remark(source, options = {})
it "should have reference-style hyperlinks" do
remark("<p>Click <a href='foo' title='mooslav'>here</a> and <a href='bar'>there</a></p>", :inline_links => false).should ==
- "Click [here][1] and [there][2]\n\n[1]: foo \"mooslav\"\n[2]: bar"
+ "Click [here][1] and [there][2]\n\n\n[1]: foo \"mooslav\"\n[2]: bar"
remark("<p>Click <a href='foo'>here</a> and <a href='foo'>there</a></p>", :inline_links => false).should ==
- "Click [here][1] and [there][1]\n\n[1]: foo"
+ "Click [here][1] and [there][1]\n\n\n[1]: foo"
end
it "should support blockquotes" do

0 comments on commit 9254deb

Please sign in to comment.