Skip to content

Commit

Permalink
feat(mentor): No need to display the source link
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneskaeufler committed Mar 3, 2018
1 parent ed5e9fe commit 501b57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Tip", () => {
it("concats the text and the source", () => {
const tip = new Tip("A tip with a source.", new URL("http://example.com"), [])

expect(tip.toMarkdown()).toEqual("A tip with a source. *Source:* [http://example.com/](http://example.com/)")
expect(tip.toMarkdown()).toEqual("A tip with a source. [Source](http://example.com/)")
})
})
})
2 changes: 1 addition & 1 deletion src/tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default class Tip {
}

toMarkdown(): string {
return `${this.text} *Source:* [${this.source}](${this.source})`
return `${this.text} [Source](${this.source})`
}
}

0 comments on commit 501b57f

Please sign in to comment.