website/routes/imports/markdown_css.ts

15 lines
314 B
TypeScript

import { Handlers } from '$fresh/server.ts'
import { CSS, KATEX_CSS } from '@deno/gfm'
export const handler: Handlers = {
GET() {
const styles = CSS + KATEX_CSS
return new Response(styles, {
headers: {
'Content-Type': 'text/css; charset=utf-8',
// TODO add cache headers and eTag
},
})
},
}