fix: render function fixed

This commit is contained in:
Eli Bosley
2024-12-16 15:00:48 -05:00
parent 943c907d03
commit 833a99fe18

View File

@@ -88,8 +88,8 @@ export const useUpdateOsChangelogStore = defineStore('updateOsChangelog', () =>
},
render: marked.Renderer.prototype.link,
};
renderer.link = function (link) {
const anchor = anchorRender.render(link);
renderer.link = function (href, title, text) {
const anchor = anchorRender.render(href, title, text);
return anchor
.replace('<a', "<a target='_blank' ") // open links in new tab
.replace('.md', ''); // remove .md from links