mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: render function fixed
This commit is contained in:
@@ -88,8 +88,8 @@ export const useUpdateOsChangelogStore = defineStore('updateOsChangelog', () =>
|
|||||||
},
|
},
|
||||||
render: marked.Renderer.prototype.link,
|
render: marked.Renderer.prototype.link,
|
||||||
};
|
};
|
||||||
renderer.link = function (link) {
|
renderer.link = function (href, title, text) {
|
||||||
const anchor = anchorRender.render(link);
|
const anchor = anchorRender.render(href, title, text);
|
||||||
return anchor
|
return anchor
|
||||||
.replace('<a', "<a target='_blank' ") // open links in new tab
|
.replace('<a', "<a target='_blank' ") // open links in new tab
|
||||||
.replace('.md', ''); // remove .md from links
|
.replace('.md', ''); // remove .md from links
|
||||||
|
|||||||
Reference in New Issue
Block a user