|
|
@ -48,14 +48,14 @@ export const langs = {
|
|
|
|
export function link_renderer(href,title,text) {
|
|
|
|
export function link_renderer(href,title,text) {
|
|
|
|
let target_attr = '';
|
|
|
|
let target_attr = '';
|
|
|
|
let title_attr = '';
|
|
|
|
let title_attr = '';
|
|
|
|
|
|
|
|
|
|
|
|
if(href.startsWith("http")) {
|
|
|
|
if (href.startsWith("http")) {
|
|
|
|
target_attr = ' target="_blank"';
|
|
|
|
target_attr = ' target="_blank"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(title !== null) {
|
|
|
|
if (title !== null) {
|
|
|
|
title_attr = ` title="${title}"`;
|
|
|
|
title_attr = ` title="${title}"`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return `<a href="${href}"${target_attr}${title_attr}>${text}</a>`;
|
|
|
|
return `<a href="${href}"${target_attr}${title_attr}>${text}</a>`;
|
|
|
|
};
|
|
|
|
}
|
|
|
|