Skip to content
Myr

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 file

Take it

Merge build/1221-front-and-project-homeoscabrielbefore adoption493b2dd

lines 1–16why, one step back
1export const variedByAccept = (response: Response): Response => {
2 const headers = new Headers(response.headers);34 headers.set("vary", "Accept");56 return new Response(response.body, { headers, status: response.status });7};89export const markdownLink = (href: string) =>10 `<${href}>; rel="alternate"; type="text/markdown"`;1112export const markdownAlternateLink = (href: string) => ({13 href,14 rel: "alternate",15 type: "text/markdown",16});