Skip to content

Commit

Permalink
Autolink/markdown compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
veelenga committed Aug 5, 2017
1 parent fbd3e26 commit 27f7feb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shards:

autolink:
github: hugoabonizio/autolink.cr
version: 0.1.2
version: 0.1.3

baked_file_system:
github: schovi/baked_file_system
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies:

autolink:
github: hugoabonizio/autolink.cr
version: 0.1.2
version: 0.1.3

development_dependencies:
spec2:
Expand Down
6 changes: 5 additions & 1 deletion spec/models/announcement_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ describe Announcement do
end
end

it "autolink/markdown edge case" do
it "autolink/markdown edge cases" do
content = "<a href=\"hello\">http://example.com</a>"
expect(announcement(description: content).content)
.to eq "<p>&lt;a href=\"hello\"><a href=\"http://example.com\">http://example.com</a>&lt;/a></p>"

content = "<a href=\"http://www.myblog.com\">http://www.myblog.com</a>"
expect(announcement(description: content).content)
.to eq "<p>&lt;a href=\"http://www.myblog.com\">http://www.myblog.com&lt;/a></p>"
end
end

Expand Down

0 comments on commit 27f7feb

Please sign in to comment.