Skip to content

Commit b5e6510

Browse files
committed
[Added]: Updates to link display logic
- Not underlining the links - Added tests
1 parent 3067ddd commit b5e6510

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exports.parse = (markdown) => {
4949

5050
// underline links
5151
r.link = (uri) => {
52-
return chalk.underline(uri);
52+
return uri;
5353
};
5454

5555
// paragraphs just pass through (automatically created by new lines)

test/parser.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ describe('Parser', () => {
2929
page.description.should.eql('archiving utility\nwith support for compression');
3030
});
3131

32+
it('can parse the homepage', () => {
33+
let page = parser.parse(`
34+
# tar
35+
> archiving utility
36+
> Homepage: <https://www.gnu.org/software/tar/manual/tar.html>.`
37+
);
38+
page.description.should.eql('archiving utility\nHomepage: https://www.gnu.org/software/tar/manual/tar.html.');
39+
});
40+
3241
it('does not escape HTML entities', () => {
3342
let page = parser.parse(`
3443
# tar

0 commit comments

Comments
 (0)