Skip to content

Commit aba1b74

Browse files
committed
Fix internal links example
1 parent c48fabd commit aba1b74

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ You can also set custom renderer for the internal wiki links (the *[[link]]* or
3838

3939
```js
4040
function linkRenderer(link) {
41-
gh_name = githubname(link) + '.md';
42-
return '<a href="' + module.wikiurl + gh_name + '">' + link + '</a>';
41+
return 'Hey here is a link: ' + link;
4342
};
4443

4544
function linkRendererTitle(title, link) {
46-
gh_name = githubname(link) + '.md';
47-
return '<a href="' + module.wikiurl + gh_name + '">' + title + '</a>';
45+
return 'Hey here is a link: ' + link + ' with a title: ' + title;
4846
};
4947

5048
githubwiki.setMarkedOptions({

0 commit comments

Comments
 (0)