Browse Source

Fixed for patterns.

pull/380/head
Sebastian Stehle 7 years ago
parent
commit
a590688973
  1. 6
      src/Squidex/app/shared/components/help-markdown.pipe.ts

6
src/Squidex/app/shared/components/help-markdown.pipe.ts

@ -11,7 +11,11 @@ import * as Marked from 'marked';
const renderer = new Marked.Renderer(); const renderer = new Marked.Renderer();
renderer.link = (href, title, text) => { renderer.link = (href, title, text) => {
return `<a href="https://docs.squidex.io/${href}" title="${title}" target="_blank", rel="noopener">${text} <i class="icon-external-link"></i></a>`; if (!href.startsWith('http')) {
href = `https://docs.squidex.io/${href}`;
}
return `<a href="${href}" title="${title}" target="_blank", rel="noopener">${text} <i class="icon-external-link"></i></a>`;
}; };
@Pipe({ @Pipe({

Loading…
Cancel
Save