Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

separate reference links with 2 blank lines

  • Loading branch information...
commit 9254deb865a2eae6e0b73cbfbb31eeb3bf13ea86 1 parent 5934d32
@mislav authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/remark.rb
  2. +2 −2 spec/remark_spec.rb
View
2  lib/remark.rb
@@ -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
4 spec/remark_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.