Fix weird fancy link spacing

This commit is contained in:
Shadowfacts 2019-01-05 11:35:01 -05:00
parent 1dbf90b7a1
commit 26f718fa90
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 6 deletions

View File

@ -37,12 +37,7 @@ export function chunk<T>(array: T[], size: number): Chunk<T>[] {
} }
export function fancyLink(text: string, href: string, meta?: string): string { export function fancyLink(text: string, href: string, meta?: string): string {
return ` return `<a href="${href}" class="fancy-link" ${meta || ""}><span aria-hidden="true">{</span>${text}<span aria-hidden="true">}</span></a>`;
<a href="${href}" class="fancy-link" ${meta || ""}>
<span aria-hidden="true">{</span>
${text}
<span aria-hidden="true">}</span>
</a>`;
} }
export function render(template: string, data: any, filename?: string): string { export function render(template: string, data: any, filename?: string): string {