website/routes/imports/markdown_css.ts
2024-07-02 13:58:04 +02:00

15 lines
308 B
TypeScript

import { Handlers } from '$fresh/server.ts'
import { CSS, KATEX_CSS } from '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
},
})
},
}