Skip to content

Commit 8008ab4

Browse files
committed
fix: render function fixed
1 parent cfb3a45 commit 8008ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/store/updateOsChangelog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export const useUpdateOsChangelogStore = defineStore('updateOsChangelog', () =>
8888
},
8989
render: marked.Renderer.prototype.link,
9090
};
91-
renderer.link = function (link) {
92-
const anchor = anchorRender.render(link);
91+
renderer.link = function (href, title, text) {
92+
const anchor = anchorRender.render(href, title, text);
9393
return anchor
9494
.replace('<a', "<a target='_blank' ") // open links in new tab
9595
.replace('.md', ''); // remove .md from links

0 commit comments

Comments
 (0)