markdown.ts
This file
Path
apps/web/src/features/front/markdown.ts
16 lines · 446 bytes · TypeScript
Last changed by
Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72
History of this fileTake it
1234567891011121314151617export const variedByAccept = (response: Response): Response => { const headers = new Headers(response.headers);
headers.set("vary", "Accept");
return new Response(response.body, { headers, status: response.status });};
export const markdownLink = (href: string) => `<${href}>; rel="alternate"; type="text/markdown"`;
export const markdownAlternateLink = (href: string) => ({ href, rel: "alternate", type: "text/markdown",});