Skip to content
Snippets Groups Projects
Verified Commit 38bf7808 authored by Jonas Leder's avatar Jonas Leder
Browse files

fix images

parent 262ab003
Branches
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ export function markedOptionsFactory(): MarkedOptions { ...@@ -7,7 +7,7 @@ export function markedOptionsFactory(): MarkedOptions {
if(RegExp('^https?:\/\/|\/\/').test(href)) { if(RegExp('^https?:\/\/|\/\/').test(href)) {
return `<img src="${href}" alt="${text}">`; return `<img src="${href}" alt="${text}">`;
} else { } else {
return `<s3img src="${href}"></s3img>`; return `<a href="api/images/redirect?path=${href}"><img src="api/images/redirect?path=${href}&preview=1"></img></a>`;
} }
}; };
...@@ -18,5 +18,7 @@ export function markedOptionsFactory(): MarkedOptions { ...@@ -18,5 +18,7 @@ export function markedOptionsFactory(): MarkedOptions {
pedantic: false, pedantic: false,
smartLists: true, smartLists: true,
smartypants: false, smartypants: false,
headerIds: true,
headerPrefix: 'head-',
}; };
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment